Number

The number data type is a double-precision floating-point number. You can manipulate numbers using the arithmetic operators addition ( + ), subtraction ( – ), multiplication ( * ), division ( / ), modulo ( % ), increment ( ++ ), and decrement ( — ). You can also use methods of the built-in Math and Number classes to manipulate numbers. The following example uses the sqrt() (square root) method to return the square root of the number 50:

Math.sqrt(50);

For more information, see Numeric operators.

The following table lists the ActionScript numeric operators:

Operator Operation performed
+
Addition
*
Multiplication
/
Division
%
Modulo (remainder of division)
-
Subtraction
++
Increment
Decrement

Number