User Guide

Table Of Contents
/ (divide) 87
Description
Operator (arithmetic); a pre-decrement and post-decrement unary operator that subtracts 1
from
expression. The pre-decrement form of the operator (––expression) subtracts 1 from
expression and returns the result as a number. The post-decrement form of the operator
(
expression––) subtracts 1 from expression and returns the initial value of expression
(the value before the subtraction).
Example
The following example shows the pre-decrement form of the operator, decrementing aWidth
to 2 (
aWidth - 1 = 2) and returning the result as bWidth:
aWidth = 3;
bWidth = --aWidth;
// The bWidth value is equal to 2.
The next example shows the post-decrement form of the operator decrementing aWidth to 2
(
aWidth - 1 = 2) and returning the original value of aWidth as the result bWidth:
aWidth = 3;
bWidth = aWidth--;
// The bWidth value is equal to 3.
/ (divide)
Availability
Flash Lite 1.0.
Usage
expression1 / expression2
Operands
expression1, expression2 Numbers or expressions that evaluate to numbers.
Description
Operator (arithmetic); divides expression1 by expression2. The result of the division
operation is a double-precision floating-point number.
Example
The following statement divides the floating-point number 22.0 by 7.0 and then shows the
result in the Output panel:
trace(22.0 / 7.0);
The result is 3.1429, which is a floating-point number.