JavaScript tutorial:
LOG2E property

 

Applies to: Math Object

The LOG2E property is used to get the base-2 logarithm of e, Euler's constant.

Syntax

var varName
varName = objName
.LOG2E

Return value

Returns the base-2 logarithm of e, Euler's constant.

Example

The LOG2E property, a constant, is approximately equal to 1.442.

See also: Math Object Properties