Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Number.MIN_SAFE_INTEGER

2 tags 1 category

The Number.MIN_SAFE_INTEGER static data property represents the minimum safe integer in JavaScript, or -(253 – 1).

To represent integers smaller than this, consider using BigInt.

Double precision floating point format only has 52 bits to represent the mantissa, so it can only safely represent integers between -(253 – 1) and 253 – 1. Safe in this context refers to the ability to represent integers exactly and to correctly compare them. For example, Number.MIN_SAFE_INTEGER – 1 === Number.MIN_SAFE_INTEGER – 2 will evaluate to true, which is mathematically incorrect. See Number.isSafeInteger() for more information.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…