JavaScript Math.LN2
Description
The Math.LN2
propery returns the natural logarithm of 2.
The Math.LN2
propery returns approximately 0.693.
JavaScript Logarthmic Functions:
The Math.log() MethodThe Math.log2() Method
The Math.log10() Method
The Math.log1p() Method
Logarthmic Properies:
The Math.LN2 PropertyThe Math.LN10 Property
The Math.LOG2E Property
The Math.LOG10E Property
Exponential Functions:
The Math.E Property (Euler's Number)The Math.exp() Method
The Math.expm1() Method
Syntax
Math.LN2
Return Value
Type
Description
Number The natural logarithm of 2.
Browser Support
Math.LN2
is an ECMAScript1 (JavaScript 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |