JS Built-ins
← Math35 / 215
MathSQRT1_2advanced

Math.SQRT1_2 β€” exact IEEE 754 value

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

Use Math.SQRT1_2 as a precomputed constant equal to 1/√2, useful in trigonometry and vector normalization.

Math.SQRT1_2

The exact IEEE 754 double-precision value of Math.SQRT1_2 is 0.7071067811865476.

Challenge: Verify the exact stored value and its bounds.

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