# -= assignment operator

The -= assignment operator decrements
a variable by a numeric expression.

## Syntax

```
var -= num.exp
```

## Example(s)

Subtracts `1` from
the variable, `x` and assigns the result to `x`.

```
x -= 1
```
This statement:

```
total -= tax
```
is equivalent to the statement:

```
total = total - tax
```

## See also

- [* arithmetic operator](https://d3codex.com/pickbasic-flashbasic/asterisk-arithmetic-operator/)
- [*= assignment operator](https://d3codex.com/pickbasic-flashbasic/asterisk-equals-assignment-operator/)
- [+ arithmetic operator](https://d3codex.com/pickbasic-flashbasic/plus-arithmetic-operator/)
- [+= assignment operator](https://d3codex.com/pickbasic-flashbasic/plus-equals-assignment-operator/)
- [- arithmetic operator](https://d3codex.com/pickbasic-flashbasic/minus-arithmetic-operator/)
- [/= assignment operator](https://d3codex.com/pickbasic-flashbasic/slash-equals-assignment-operator/)
- [:= assignment operator](https://d3codex.com/pickbasic-flashbasic/colon-equals-assignment-operator/)
- [Arithmetic expressions](https://d3codex.com/pickbasic-flashbasic/arithmetic-expressions/)
- [Arithmetic operators](https://d3codex.com/pickbasic-flashbasic/arithmetic-operators/)
- [Assignment](https://d3codex.com/pickbasic-flashbasic/assignment/)
- [Numeric expressions](https://d3codex.com/pickbasic-flashbasic/numeric-expressions/)
- [Precedence](https://d3codex.com/pickbasic-flashbasic/precedence/)
- [precision statement](https://d3codex.com/pickbasic-flashbasic/precision-statement/)
- [Relational operators](https://d3codex.com/pickbasic-flashbasic/relational-operators/)
- [sum() function](https://d3codex.com/pickbasic-flashbasic/sum-function/)
- [\= assignment operator](https://d3codex.com/pickbasic-flashbasic/backslash-equals-assignment-operator/)

---
Source: https://d3codex.com/pickbasic-flashbasic/minus-equals-assignment-operator/ - part of the D3Codex reference.
