Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Math > SQRT2 (Math.SQRT2 property) | |||
public static SQRT2 : Number
A mathematical constant for the square root of 2, with an approximate value of 1.4142135623730951.
Availability: ActionScript 1.0; Flash Player 5 - In Flash Player 4, the methods and properties of the Math class are emulated using approximations and might not be as accurate as the non-emulated math functions that Flash Player 5 supports.
This example traces the value of Math.SQRT2.
trace(Math.SQRT2); // Output: 1.4142135623731
Flash CS3