LOG10E mystery constant

P T Withington ptw at pobox.com
Tue Feb 22 05:14:31 PST 2011


On 2011-02-21, at 00:47, Mark S. Miller wrote:

> But they convert to back to two different floating point numbers, at least
> on all the browsers I quickly tried.
> 
>> 0.43429448190325176 === 0.4342944819032518
> false
>> 0.43429448190325176 < 0.4342944819032518
> true
>> 0.43429448190325176 > 0.4342944819032518
> false
> 
> A little more testing reveals that the two numbers seem to be consecutive,
> in the sense that there are no intermediate representable numbers.

Have we forgotten this lesson:

  http://portal.acm.org/citation.cfm?id=93559

?


More information about the es-discuss mailing list