JavaScript LOG2E Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

JavaScript LOG2E Property

❮ JavaScript Math Object

Example

Return the base-2 logarithm of E:

Math.LOG2E;
Try it Yourself »

Definition and Usage

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


Browser Support

Property
LOG2E Yes Yes Yes Yes Yes

Syntax

Math.LOG2E

Technical Details

Return Value: A Number, representing the base-2 logarithm of E
JavaScript Version: ECMAScript 1

❮ JavaScript Math Object