From http://www.w3schools.com (Copyright Refsnes Data)

JavaScript LN2 Property


Math Object Reference JavaScript Math Object

Definition and Usage

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

Syntax

Math.LN2


Example

Example

Return the natural logarithm of 2:

<script type="text/javascript">

document.write("LN2: " + Math.LN2);

</script>

The output of the code above will be:

LN2: 0.6931471805599453

Try it yourself »


Math Object Reference JavaScript Math Object

From http://www.w3schools.com (Copyright Refsnes Data)