User Guide
420 Chapter 2: ActionScript Language Reference
Property summary for the Math class
All the following properties for the Math class are constants:
Math.pow()
Computes x raised to the power of the y.
Math.random()
Returns a pseudo-random number between 0.0 and 1.0.
Math.round()
Rounds to the nearest integer.
Math.sin()
Computes a sine.
Math.sqrt()
Computes a square root.
Math.tan()
Computes a tangent.
Property Description
Math.E
Euler’s constant and the base of natural logarithms (approximately 2.718).
Math.LN2
The natural logarithm of 2 (approximately 0.693).
Math.LOG2E
The base 2 logarithm of e (approximately 1.442).
Math.LN2
The natural logarithm of 10 (approximately 2.302).
Math.LOG10E
The base 10 logarithm of e (approximately 0.434).
Math.PI
The ratio of the circumference of a circle to its diameter (approximately 3.14159).
Math.SQRT1_2
The reciprocal of the square root of 1/2 (approximately 0.707).
Math.SQRT2
The square root of 2 (approximately 1.414).
Method Description