Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript LOG2E Property

JavaScript LOG2E Property

Math Object Reference JavaScript Math object

Example

Return the base-2 logarithm of e:

Math.LOG2E;

Output result:

1.4426950408889634

Try it »


Definition and Usage

The LOG2E property is log2e, the base-2 logarithm of e, whose value is approximately 1.442695040888963387.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All mainstream browsers support the LOG2E property.


Syntax

Math.LOG2E

Technical Details

Return Value: Return the base-2 logarithm of e (approximately 1.414).
JavaScript version: 1.0

Math Object Reference JavaScript Math object