SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
Math.SQRT1_2
Arguments
None.
Returns
Square root of 1/2.
Description
Returns the square root of 1/2. This constant is often used in trig calculations.
It is an irrational number and has the approximate value of 0.707106.
Sample
Math.SQRT1_2; // returns 0.707106
Math.sindeg(45) - Math.SQRT1_2; // returns -1.11022302462515e-16 which is pretty close to 0
See Also
Math.SQRT2