*= assignment operator

The *= assignment operator multiplies a numeric expression and assigns it to the variable.

Syntax

variable *= num.exp

Example(s)

Multiplies the current value of x by 2 and assigns the result to x. This is equivalent to: x = x * 2

x *= 2