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: Number, representing the natural logarithm of 2.
JavaScript version: ECMAScript 1

Browserv understøttelse

Math.LN2 Er en ES1-funktion (JavaScript 1999). Alle browsere understøtter det fuldt ud:

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

Relaterede sider

Tutorial:JavaScript matematik