JavaScript LOG2E property

Definition and usage

LOG2E The property is log2e, which is the logarithm base 2 of e, and its value is approximately 1.442695040888963387.

Example

Returns the logarithm base 2 of E:

Math.LOG2E;

Try it yourself

Syntax

Math.LOG2E

Technical details

Return value: A number representing the logarithm base 2 of E.
JavaScript version: ECMAScript 1

Browser Support

Math.LOG2E Is an ES1 Feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math