JavaScript LOG2E property

Definition and usage

LOG2E The property is log2e, which is the logarithm of e with base 2, 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

Webbläsarstöd

Math.LOG2E är ES1-funktioner (JavaScript 1999). Alla webbläsare stöder det fullt ut:

Chrome IE Edge Firefox Safari Opera
Stöd Stöd Stöd Stöd Stöd Stöd

Relaterade sidor

Lärord:JavaScript matematik