FW: FW: Values for numeric literals

Cameron McCormack cam at mcc.id.au
Sun Jun 21 22:31:36 PDT 2009


Mike Cowlishaw:
>> Therefore IEEE 754-1985 allowed such conversions to be correct to
> within one ulp (unit in last place) rather than correctly rounded
> (correct to with 0.5 ulp, roughly).

Ah.

> ECMAScript edition 3 probably allows two rules for literals because
> two different implementations worked differently for very long
> literals and one or both quoted that rule as justification. Why they
> worked differently probably boils down to a lazy/hurried programmer
> somewhere back in the mid-1990s...

OK, it seems safe for me then to leave my text saying that the closest
IEEE 754 number is chosen, then.

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/


More information about the es5-discuss mailing list