X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

JavaScript LN2 Property

Math Object Reference JavaScript Math Object

Example

Return the natural logarithm of 2:

Math.LN2;

The result will be:

0.6931471805599453

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: 1.0


Math Object Reference JavaScript Math Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook