LOG2E
Math
class propertyS2C Home
« Globals « Math « LOG2E
Description
Returns the Base 2 logarithm of E
.
- Like all class properties
LOG2E
should be used on the class rather than an instance of the class.
Syntax
Signature | Description |
---|---|
Math.LOG2E | Returns the Base 2 logarithm of E . |
Parameters
None.
Examples
The code below displays LOG2E
usage.
alert('Base 2 logarithm of E: ' + Math.LOG2E) // 1.442695...
Related Tutorials
JavaScript Advanced Tutorials - Lesson 4 - Math