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

Support du navigateur

Math.LOG2E C'est une fonctionnalité ES1 (JavaScript 1999). Tous les navigateurs le supportent pleinement :

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

Pages associées

Tutoriel :Mathématiques JavaScript