fn: *=
[contents]

Contents

Syntax

The syntax for *= calls is:

f++:  
*=(params)

n++:  
@*=(params)

Description

*= is the arithmetic assignment operator for multiplication, it takes at least two input parameters with the first specifying a variable name and the remainder to be numbers, it adds the product of the numbers to the variable specified in the first parameter.

Note: It is typically faster to use exprtk for arithmetic assignment operators, plus the syntax is nicer.

f++ example

Example of *= being used with f++:

:=(int, a=10, b=13)
*=(a, b, 3)
console(a)

n++ example

Example of *= being used with n++:

@:=(int, a=10, b=13)
@*=(a, b, 3)
@console(a)