Method
Math.pow()
Math.random()
Math.round()
Math.sin()
Math.sqrt()
Math.tan()
Property summary for the Math class
All the following properties for the Math class are constants:
Property
Math.E
Math.LN2
Math.LOG2E
Math.LN2
Math.LOG10E
Math.PI
Math.SQRT1_2
Math.SQRT2
Math.abs()
Availability
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.
Usage
Math.abs(x:Number) : Number
Parameters
A number.
x
Returns
A number.
Description
Method; computes and returns an absolute value for the number specified by the parameter
Description
Computes
raised to the power of the
x
Returns a pseudo-random number between 0.0 and 1.0.
Rounds to the nearest integer.
Computes a sine.
Computes a square root.
Computes a tangent.
Description
Euler's constant and the base of natural logarithms (approximately 2.718).
The natural logarithm of 2 (approximately 0.693).
The base 2 logarithm of e (approximately 1.442).
The natural logarithm of 10 (approximately 2.302).
The base 10 logarithm of e (approximately 0.434).
The ratio of the circumference of a circle to its diameter (approximately 3.14159).
The reciprocal of the square root of 1/2 (approximately 0.707).
The square root of 2 (approximately 1.414).
.
y
.
x
Math.abs()
345
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?