JavaScript LOG2EProperty
Examples
Returns the base-2 logarithm of e:
Math.LOG2E;
Output result:
1.4426950408889634
Try it Yourself »
Definition and Usage
The LOG2E property is log2e, i.e., the base-2 logarithm of e, with a value approximately 1.442695040888963387.
Browser Support
![]()
![]()
![]()
![]()
![]()
All mainstream browsers support the LOG2E property.
Syntax
Math.LOG2E
Technical Details
| Return value: | Returns the base-2 logarithm of e (approximately equal to 1.414). |
|---|---|
| JavaScript Version: | 1.0 |
Other extensions
JavaScript Math Object