JavaScript LN2 Property
JavaScript Math Object
Definition and Usage
The LN2 property returns the natural logarithm of 2, approximately 0.693.
Syntax
Browser Support

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:
Try it yourself »
|
JavaScript Math Object
|