JavaScript LOG2E Property
JavaScript Math Object
Definition and Usage
The LOG2E property returns the base-2 logarithm of E, approximately 1.442.
Syntax
Example
Example
Return the base-2 logarithm of E:
<script type="text/javascript">
document.write("LOG2E: " + Math.LOG2E);
</script>
|
The output of the code above will be:
|
LOG2E: 1.4426950408889633
|
Try it yourself »
|
JavaScript Math Object
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|