Jeff Walden (2013-07-12T23:39:27.000Z)
domenic at domenicdenicola.com (2013-07-16T00:39:48.845Z)
On 07/12/2013 04:32 PM, Allen Wirfs-Brock wrote: > So the other thread was a discussion concerning the appropriate value of `Number.MAX_INTEGER`. Do you think it should be 2^53-1, or 2^53, or the same thing as `Math.MAX_VALUE`. `Number.MAX_INTEGER` should be 2^53. People who want 2^53 - 1 (and there are roughly reasonable uses for it as discussed in that thread, if enough care is taken) can use < as the relevant operator when comparing. In contrast, if the value were 2^53 - 1, people who want the 2^53 value can't simply use a different operator. I haven't kept up enough with this list to know what `Math.MAX_VALUE` is, and it's not in the latest draft I have -- unless you meant `Number.MAX_VALUE`? If you meant that, `Number.MAX_INTEGER` should definitely be different from `Number.MAX_VALUE`.
domenic at domenicdenicola.com (2013-07-16T00:39:32.738Z)
On 07/12/2013 04:32 PM, Allen Wirfs-Brock wrote: > So the other thread was a discussion concerning the appropriate value of Number.MAX_INTEGER. Do you think it should be 2^53-1, or 2^53, or the same thing as Math..MAX_VALUE. `Number.MAX_INTEGER` should be 2^53. People who want 2^53 - 1 (and there are roughly reasonable uses for it as discussed in that thread, if enough care is taken) can use < as the relevant operator when comparing. In contrast, if the value were 2^53 - 1, people who want the 2^53 value can't simply use a different operator. I haven't kept up enough with this list to know what `Math.MAX_VALUE` is, and it's not in the latest draft I have -- unless you meant `Number.MAX_VALUE`? If you meant that, `Number.MAX_INTEGER` should definitely be different from `Number.MAX_VALUE`.