JavaScript LN2 Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

JavaScript LN2 Property

❮ JavaScript Math Object

Example

Return the natural logarithm of 2:

Math.LN2;
Try it Yourself »

Definition and Usage

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


Browser Support

Property
LN2 Yes Yes Yes Yes Yes

Syntax

Math.LN2

Technical Details

Return Value: A Number, representing the natural logarithm of 2
JavaScript Version: ECMAScript 1

❮ JavaScript Math Object