# -- operator

Source: https://ref.dm-lang.org/operator/minusminus

### Format
- `--A // pre-decrement`
- `A-- // post-decrement`


The pre-decrement has the value (A-1) and the effect of subtracting 1 from A.

The post-decrement has the value (A) and has the effect of subtracting 1 from A.

```dm
var/A = 0
world << "A-- = [A--]" // outputs "A = 0"
world << "--A = [--A]" // outputs "A = -2"
```

### See also
- [++ operator](https://ref.dm-lang.org/operator/plusplus.md)
- [- operator](https://ref.dm-lang.org/operator/minus.md)
- [-= operator](https://ref.dm-lang.org/operator/minusequals.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
