JS Built-ins
← Math40 / 215
MathSQRT2advanced

Math.SQRT2 β€” exact IEEE 754 value

πŸ“– Usage Example
// Square root of 2
Math.SQRT2              // β†’ 1.4142135623...
Math.SQRT2 === Math.sqrt(2)   // β†’ true

Use Math.SQRT2 as a precomputed constant equal to √2, useful in geometry and diagonal calculations.

Math.SQRT2

The exact IEEE 754 double-precision value of Math.SQRT2 is 1.4142135623730951.

Challenge: Verify the exact stored value and its bounds.

πŸ’‘ Hints (2)
  • β€’ The exact IEEE 754 representation is 1.4142135623730951.
  • β€’ This is the closest double-precision float to √2.