Subtraction Assignment Operator (-=)

Subtracts the value of an expression from the value of a variable and assigns the result to the variable.

result -= expression

Arguments

  • result
    Any numeric variable.
  • expression
    Any numeric expression.

Remarks

Using the -= operator is exactly the same as doing the following:

result = result – expression

Requirements

Version 1

See Also

- Operator | Operator Precedence | Operator Summary