JavaScript LN2Property

Math 对象参考手册JavaScript Math Object

Example

Return the natural logarithm of 2:

Math.LN2;

Output result:

0.6931471805599453

Try it Yourself »

Definition and Usage

The LN2 property is loge2, that is, the natural logarithm of 2, with a value approximately equal to 0.69314718055994528623.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the LN2 property.


Syntax

Math.LN2

Technical Details

Return value: Returns the natural logarithm of 2 (approximately 0.693).
JavaScript Version: 1.0


Math 对象参考手册JavaScript Math Object

Other Extensions