Math.LN2 property
The Math.LN2 property contains
the value of the natural logarithm
of the number 2.
Syntax
Math.LN2;
Example
Let's output the value of the
natural logarithm of the
number 2:
console.log(Math.LN2);
The code execution result:
0.6931471805599453
See also
-
the
Math.LN10property
that returns the value of the natural logarithm of ten -
the
Math.LOG2Eproperty
that returns the base 2 logarithm of e -
the
Math.LOG10Eproperty
that returns the base 10 logarithm of e -
the
Math.logmethod
that returns the natural logarithm of a number