JavaScript LN2Property
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
![]()
![]()
![]()
![]()
![]()
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 |
Other Extensions
JavaScript Math Object