LOG2E

The base 2 logarithm of E (approximately 1.442). LOG2E is static, read-only.

Property of

Math

Examples

The following function returns the base 2 logarithm of E:

function getLog2e() {
      return Math.LOG2E
}

Description

Because LOG2E is a static property of Math, you always use it as Math.LOG2E, rather than as a property of a Math object you created.