PickBASIC / FlashBASIC
-= assignment operator
.mdThe -= assignment operator decrements a variable by a numeric expression.
Syntax
var -= num.expExample(s)
Subtracts 1 from
the variable, x and assigns the result to x.
x -= 1
This statement:
total -= taxis equivalent to the statement:
total = total - tax
See also
* arithmetic operator→*= assignment operator→+ arithmetic operator→+= assignment operator→- arithmetic operator→/= assignment operator→:= assignment operator→Arithmetic expressions→Arithmetic operators→Assignment→Numeric expressions→Precedence→precision statement→Relational operators→sum() function→\= assignment operator→