JS Built-ins
← Math20 / 215
MathLOG2Eadvanced

Math.LOG2E β€” exact IEEE 754 value

πŸ“– Usage Example
// Base-2 logarithm of e
Math.LOG2E   // β†’ 1.4426950408...
// Equivalent to: 1 / Math.LN2

Use Math.LOG2E as a precomputed constant for converting natural log values to base-2 logarithms.

Math.LOG2E

The exact IEEE 754 double-precision value of Math.LOG2E is 1.4426950408889634.

Challenge: Verify the exact stored value and its relationship with LN2.

πŸ’‘ Hints (2)
  • β€’ The exact IEEE 754 representation is 1.4426950408889634.
  • β€’ LN2 * LOG2E should equal 1 (they are reciprocals).