JS Built-ins
NumberMIN_SAFE_INTEGERbeginner

Number.MIN_SAFE_INTEGER β€” the value

πŸ“– Usage Example
// Most negative safely representable integer
Number.MIN_SAFE_INTEGER   // β†’ -9007199254740991
Number.MIN_SAFE_INTEGER - 1 === Number.MIN_SAFE_INTEGER - 2   // β†’ true (unsafe!)

Use Number.MIN_SAFE_INTEGER as the lower bound when working with negative integers to avoid silent precision loss.

Number.MIN_SAFE_INTEGER

Number.MIN_SAFE_INTEGER equals -(2^53 - 1) = -9007199254740991 β€” the most negative integer that can be represented exactly.

πŸ’‘ Hints (1)
  • β€’ `MIN_SAFE_INTEGER` is the negative counterpart of `MAX_SAFE_INTEGER`.