/= (division 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 statements are equivalent:

x /= y
x = x / y

Example

The following example uses the /= operator with variables and numbers:

x = 10;
y = 2;
x /= y;
// The expression x now contains the value 5.