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 |
See Also
* Arithmetic Operator, += Assignment Operator, - Arithmetic Operator, -= Assignment Operator, /= Assignment Operator, := Assignment Operator, Arithmetic Expressions, Arithmetic Operators, Assignment, Numeric Expressions, Precedence, precision Statement, Relational Operators, sum() Function, \= Assignment Operator