/= Operator

Divides the value of a variable by the value of an expression, then changes the variable to the result.

Syntax

variable /= expression

Parts

variable
A numeric variable.
expression
A numeric expression

Instructions

The two statements that follow operate the same.

variable /= expression
variable = variable / expression

Examples

Example 1

x = 84
x /= 2
After execution
variablevalue
x42

See also