*=

Multiplication assignment operator.

Syntax

var_name *= sca_expr

Operands

var_name
A scalar variable.
sca_expr
A valid scalar expression.

Example

Expression Result
a *= 2 , where a = 2 4
a *= 2.5 , where a = 2 5

Comments

The multiplication assignment operator multiples the value of var_name by sca_expr. This operator is typically used in loop constructs.

The multiplication assignment operator is not valid when used with curve-editing functions.