archives

« Bugzilla Issues Index

#3135 — Give a more motivated definition of Number.MAX_SAFE_INTEGER


Currently, Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER are defined without explanation on where these constants come from. I think one should give a more motivated definition, like it is done for all the other constants, for example:

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

The value of Number.MIN_SAFE_INTEGER is the smallest integer n such that n and n - 1 are etc.


fixed in rev27 editor's draft


fixed in rev27 draft