EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - SQRT2 (Math.sqrt2 Property); Tan (Math.tan Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Math 429
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 Lite 2.0 - 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.
Example
This example traces the value of
Math.SQRT2.
trace(Math.SQRT2);
// Output: 1.4142135623731
tan (Math.tan method)
public static tan(x:Number) : Number
Computes and returns the tangent of the specified angle. To calculate a radian, use the
information outlined in the introduction to the Math class.
Availability: ActionScript 1.0; Flash Lite 2.0 - 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.
Parameters
x:Number - A number that represents an angle measured in radians.
Returns
Number - A number; tangent of parameter x.

Table of Contents

Related product manuals