Number.MAX_SAFE_INTEGER (2^53 - 1)

The sign, exponent and mantissa bits of 9007199254740991, and the exact value it stores.

Stored value and bits

Examples

Note

The largest integer where every whole number below it can be stored exactly. Above it, doubles can only hold every second integer, so IDs and counters can silently change.

Other notable values