« Bugzilla Issues Index
#3135 — Give a more motivated definition of Number.MAX_SAFE_INTEGER
- bug_id:
3135
- creation_ts:
2014-08-15 03:06:00 -0700
- short_desc:
Give a more motivated definition of Number.MAX_SAFE_INTEGER
- delta_ts:
2014-08-25 08:29:24 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 26: July 18, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- commentid:
9789
- comment_count:
0
- who:
Claude Pache
- bug_when:
2014-08-15 03:06:31 -0700
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.
- commentid:
9812
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-20 10:50:01 -0700
fixed in rev27 editor's draft
- commentid:
9907
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-25 08:29:24 -0700
fixed in rev27 draft