*= Assignment

Purpose

Multiplies a numeric variable with a numeric expression.

Syntax

x *= y

x:numeric variable
y:aexp

Description

x *= y multiplies the value in variable x with the expression y.

Example

OpenW # 1

Dim x# = 6

x *= 9

Print // Prints 54

Remarks

Although *= can be used with any numeric variable, the usage of integer variables is recommended in order to achieve the maximum optimization for speed.

The following can be used instead of x*=y:

x = x * y

x := x * y

Mul x, y

When integer variables are used *= doesn't test for overflow!

See Also

+, -, ^, *, /, \, %, Add, Sub, Mul, Div, ++, --, +=, -=, /= , *=, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 24/06/2017 by James Gaite}