offline version v3


53 of 264 menu

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.LN10 property
    that returns the value of the natural logarithm of ten
  • the Math.LOG2E property
    that returns the base 2 logarithm of e
  • the Math.LOG10E property
    that returns the base 10 logarithm of e
  • the Math.log method
    that returns the natural logarithm of a number
enru