How many NaNs do we now have?

David-Sarah Hopwood david.hopwood at industrial-designers.co.uk
Wed Sep 3 23:14:23 PDT 2008


Sam Ruby wrote:
> On Mon, Aug 25, 2008 at 7:03 PM, Waldemar Horwat <waldemar at google.com> wrote:
>> What should compareTotal do when you compare -NaN and NaN?
> 
> Re: the subject line; NaN's have a payload that corresponds to the
> size of the mantissa.

No they don't; not in ECMAScript. -NaN is computationally indistinguishable
from NaN by ECMAScript code. There is no payload and no quiet/signalling
distinction.

-- 
David-Sarah Hopwood


More information about the Es-discuss mailing list