LN2 (JavaScript)

Value of the natural logarithm of 2.

Defined in

Math (JavaScript)

Syntax

Math.LN2

Usage

LN2 is a constant.

The value of the natural logarithm of 2 is approximately 0.6931471805599453.

This constant is equivalent to Math.log(2).

Examples

This computed label displays the value of the natural logarithm of 10.
Math.LN2