Flash Lite 2.x and 3.0 ActionScript Language Reference

/ division operator

expression1 / expression2

Divides expression1 by expression2. The result of the division operation is a double-precision floating-point number.

Operands

expression : Number - A number or a variable that evaluates to a number.

Returns

Number - The floating-point result of the operation.

Example

The following statement divides the current width and height of the Stage, and then displays the result in the Output panel.

trace(Stage.width/2); 
trace(Stage.height/2); 

For a default Stage width and height of 550 x 400, the output is 275 and 150.

See also

% modulo operator