LOG10E mystery constant

Mark S. Miller erights at google.com
Sun Feb 20 21:16:16 PST 2011

The specification of Math.LOG10E says: LOG10E

The Number value for the base-10 logarithm of e, the base of the natural
logarithms; this value is approximately 0.4342944819032518.

This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.

NOTE The value of Math.LOG10E is approximately the reciprocal of the value
of Math.LN10.

This is the only constant whose actual value differs across browsers:

0.43429448190325176   v8 version 2.3.9 [console: dumb]
0.4342944819032518     Chrome 11.0.672.2 dev
0.4342944819032518     Chrome 11.0.672.0 canary build
0.4342944819032518     FF 3.6.13
0.4342944819032518     FF 4.0b12pre
0.43429448190325176   Safari 5.0.1 (5533.17.8)
0.43429448190325176   WebKit nightly Safari 5.0.1 (5533.17.8, r78794)
0.4342944819032518     Opera 11.01 Build 1190
0.4342944819032518     IE 9.0.8080.16413CO

Anyone know why? Which value is more correct?

I don't really care about Math.LOG10E, but it's easier to write tests if
only one value is actually correct.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110220/fb180ecb/attachment.html>

More information about the es-discuss mailing list