# - operator

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

### Format
- `A - B`
- `-B`


### Returns
> The subtraction of B from A.

Subtracts B from A. The result of the operation depends on the types of values being subtracted, mostly on A.

|    A type     |    B type     |               Result                |
|---------------|---------------|-------------------------------------|
|num or null (0)|num or null (0)|         Numeric subtraction         |
| icon or /icon | icon or color | New blended icon via ICON_SUBTRACT |
|    matrix     |    matrix     |New matrix with components subtracted|
|turf or pixloc |    vector     |       New pixloc offset by -B       |
|    pixloc     |turf or pixloc |       New vector from A to B        |
|    vector     |    vector     |New vector with components subtracted|

### See also
- [\* operator](https://ref.dm-lang.org/operator/asterisk/index.md)
- [+ operator](https://ref.dm-lang.org/operator/plus.md)
- [-= operator](https://ref.dm-lang.org/operator/minusequals.md)
- [/ operator](https://ref.dm-lang.org/operator/slash.md)
- [Remove proc (list)](https://ref.dm-lang.org/list/proc/Remove.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
- [icon](https://ref.dm-lang.org/icon/index.md)
- [matrix](https://ref.dm-lang.org/matrix/index.md)
- [pixloc](https://ref.dm-lang.org/pixloc/index.md)
- [vector](https://ref.dm-lang.org/vector/index.md)
