Action: Mul(variable, A, B)

Related Actions: let, add, sub, div, mod, random
Related Events:overflow
See also: FKiSS, Events, Actions

mul(variable, A, B)

First defined in: FKiSS3
The mul action sets the value of variable to the value of (A x B).
If the result would be outside the range of a 32-bit integer (from -2147483648 to 2147483647), this action will trigger the Overflow event.

variable

variable must a variable name.

A

A may be number or a variable.

B

B may be number or a variable.

Example:

;@ mul(X, X, 2)       ; Multiply X by 2 and store the result back in X.
;@ mul(Product, A, B) ; Multiply A by B and store the result in Product.