JavaScript tutorial:
LN2 property

 

Applies to: Math Object

The LN2 property is used to get the natural logarithm of 2.

Syntax

var numVar
numVar
= Math.LN2

Return value

Returns the natural logarithm of 2.

Example

The LN2 property is approximately equal to 0.693.

See also: Math Object Properties