Example
Return the natural logarithm of 2:
Math.LN2;
The result will be:
0.6931471805599453
Try it Yourself »
Definition and Usage
The LN2 property returns the natural logarithm of 2, approximately 0.693.
Browser Support
Property | |||||
---|---|---|---|---|---|
LN2 | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.LN2
Technical Details
Return Value: | A Number, representing the natural logarithm of 2 |
---|---|
JavaScript Version: | 1.0 |
< JavaScript Math Object