This constant provides the numeric value for the base-2 logarithm of e, the base of natural logarithms.

By inspection, the resulting value returned is 1.4426950408889634 although this may vary from platform to platform.

Note that the value of

`Math.LOG2E`is approximately the reciprocal of the value of`Math.LN2`. The word approximately is used here because the mathematical accuracy of JavaScript implementations leaves something to be desired and there are some strange artifacts in some of the calculations.

Prev | Home | Next |

Math.LOG10E | Up | Math.max() |

JavaScript Programmer's Reference, Cliff WoottonWrox Press (www.wrox.com)Join the Wrox JavaScript forum at p2p.wrox.comPlease report problems to support@wrox.com© 2001 Wrox Press. All Rights Reserved. Terms and conditions. |