/= assignment operator

The /= assignment operator divides a variable by a numeric expression and assigns it to the given variable.

Syntax

var /= num.exp

Example(s)

This divides the current value of x by 2 and assigns the result to x. It is equivalent to: x = x / 2

x /= 2