Javascript Reference - JavaScript LN2 Property








The LN2 property returns the natural logarithm of 2, approximately 0.693.

Browser Support

LN2 Yes Yes Yes Yes Yes

Syntax

Math.LN2

Return Value

A number representing the natural logarithm of 2.

Example

The following code shows how to find out the value of natural logarithm of 2.


console.log(Math.LN2);

The code above generates the following result.