Math.LOG2E property
The Math.LOG2E property
returns the value of the base
2 logarithm of e
(exponential constant).
Syntax
Math.LOG2E;
Example
Let's output the value of the
base 2 logarithm of e:
console.log(Math.LOG2E);
The code execution result:
1.4426950408889634
See also
-
the
Math.LN2property
that returns the value of the natural logarithm of two -
the
Math.LN10property
that returns the value of the natural logarithm of ten -
the
Math.LOG10Eproperty
that returns the base 10 logarithm of e -
the
Math.logmethod
that returns the natural logarithm of a number