Symbols > /= (division assignment) |
/= (division assignment)
division assignment, /=
Availability
Flash Player 4.
Usage
expression1/=expression2
Parameters
expression1,expression2 A number or a variable that evaluates to a number.
Returns
Nothing.
Description
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 / expression2. For example, the following two statements are the same:
x /= yx = x / y
Example
The following code illustrates using the /= operator with variables and numbers.
x = 10;y = 2;x /= y;// x now contains the value 5