JavaScript LOG2E Property
Complete Math Object Reference
Definition and Usage
The LOG2E property returns the base-2 logarithm of E, approximately 1.442.
Syntax
Example
<script type="text/javascript">
document.write("LOG2E: " + Math.LOG2E);
</script>
|
The output of the code above will be:
LOG2E: 1.4426950408889633
|
Try-It-Yourself Demos
LOG2E property
Use LOG2E to return the base-2 logarithm of E.
Complete Math Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|