JavaScript LN2 property

Definition and usage

LN2 The property is loge2, which is the natural logarithm of 2, and its value is approximately 0.69314718055994528623.

Example

Returns the natural logarithm of 2:

Math.LN2;

Try it yourself

Syntax

Math.LN2

Technical details

Return value: A number representing the natural logarithm of 2.
JavaScript version: ECMAScript 1

Browser Support

Math.LN2 Is an ES1 Feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math