User Guide

Table Of Contents
94 Flash Lite Operators
Example
The following code shows a numeric example that uses the modulo (%) operator:
trace (12 % 5);// output: 2
trace (4.3 % 2.1);// output: 0.0999...
%= (modulo assignment)
Availability
Flash Lite 1.0.
Usage
expression1 %= expression2
Operands
expression1, expression2 Numbers or expressions that evaluate to numbers.
Description
Operator (arithmetic compound assignment); assigns expression1 the value of
expression1 % expression2. For example, the following two expressions are equivalent:
x %= y
x = x % y
Example
The following example assigns the value 4 to the variable x:
x = 14;
y = 5;
trace(x %= y);// output: 4
See also
% (modulo)
*= (multiplication assignment)
Availability
Flash Lite 1.0.
Usage
expression1 *= expression2