JavaScript LOG2EProperty

Math 对象参考手册JavaScript Math Object

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Math 对象参考手册JavaScript Math Object

Other extensions