JavaScript Math.LN2
Definition and Usage
Math.LN2 returns the natural logarithm of 2, approximately 0.693.
Browser Support
Math.LN2
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.LN2
Return Value
A Number, representing the natural logarithm of 2. |