w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

JavaScript LN2 Property


Math Object Reference JavaScript Math Object

Definition and Usage

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

Syntax

Math.LN2


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The LN2 property is supported in all major browsers.


Example

Example

Return the natural logarithm of 2:

<script type="text/javascript">

document.write("LN2: " + Math.LN2);

</script>

The output of the code above will be:

LN2: 0.6931471805599453

Try it yourself »


Math Object Reference JavaScript Math Object

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE