JavaScript LOG2E Property
Example
Return the base-2 logarithm of e:
Math.LOG2E;
Output result:
1.4426950408889634
Try it »
Definition and Usage
The LOG2E property is log2e, the base-2 logarithm of e, whose value is approximately 1.442695040888963387.
Browser support





All mainstream browsers support the LOG2E property.
Syntax
Math.LOG2E
Technical Details
| Return Value: | Return the base-2 logarithm of e (approximately 1.414). |
|---|---|
| JavaScript version: | 1.0 |
JavaScript Math object