From http://www.w3schools.com (Copyright Refsnes Data)

JavaScript LOG2E Property


Math Object Reference JavaScript Math Object

Definition and Usage

The LOG2E property returns the base-2 logarithm of E, approximately 1.442.

Syntax

Math.LOG2E


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 »


Math Object Reference JavaScript Math Object

From http://www.w3schools.com (Copyright Refsnes Data)