Allen Wirfs-Brock wrote:
Isn't the anomaly (and the issue) that 2^53 (9,007,199,254,740,992) is both the 
upper-end of the range of integers that can be exactly represented in IEEE 
float64, it is is also the representation of the smallest positive integer 
(2^53+1) that cannot be exactly represented.

In other words, if you see the IEEE float 64 encoding of 9,007,199,254,740,992 
you don't know if it is an exact representation of 2^53 or an approximate 
representation of 2^53+1.

2^53-1 is the max integer value whose encoding is not also an approximation of 
some other integer value.

You're right, that's the reason. It helps make sense of some of the code Jeff's mxr.mozilla.org link shows. We really do have a fencepost at 2^53, not a maximum precise integer value.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to