JavaScript Math.LN2

Example

let x = Math.LN2;
Try it Yourself »

Description

The Math.LN2 propery returns the natural logarithm of 2.

The Math.LN2 propery returns approximately 0.693.



Syntax

Math.LN2

Return Value

Type Description
NumberThe natural logarithm of 2.


Browser Support

Math.LN2 is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.