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