On Jul 12, 2013, at 4:39 PM, Jeff Walden wrote:

> 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.
Number.MAX_INTEGER+1 ??
> 
> 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.

Sorry, I meant Number.MAX_VALUE.  So you seem to be saying that  that
  Number.isInteger(MAX_VALUE)  should be true, but that Number.MAX_VALUE > 
Number.MAX_INTEGER is also true because for isInteger you using the 
mathematical definition of "Integer" but for MAX_INTEGER you are using some 
other definition of "INTEGER".

Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to