Number.MAX_SAFE_INTEGER

The value of the largest integer n such that n and n + 1 are both exactly representable as a Number value. The value of Number.MAX_SAFE_INTEGER is 9007199254740991 ($2^{53} − 1$).

Syntax

MAX_SAFE_INTEGER

Examples

Number.MAX_SAFE_INTEGER
9007199254740991

See also