JavaScript LN2 Property
Complete Math Object Reference
Definition and Usage
The LN2 property returns the natural logarithm of 2, approximately 0.693.
Syntax
Example
<script type="text/javascript">
document.write("LN2: " + Math.LN2);
</script>
|
The output of the code above will be:
Try-It-Yourself Demos
LN2 property
Use LN2 to return the natural logarithm of 2.
Complete Math Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|