/= Operator

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

Syntax

variable /= expression

Parts

variable
Necessary numeric variable.
expression
Necessary numeric expression

Instructions

The following two statements are functionally equivalent.

variable /= expression
variable = variable / expression

Examples

Variable

Listing 1
x = 84
x /= 2
After execution
variablevalue
x42

Property

Listing 2
' Change value of property
#obj.value /= 2

See also