# + operator

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

### Format
> `A + B`

### Returns
> The sum of A and B.

Adds A and B. The result of the operation depends on the types of values being added, mostly on A.

|    A type     |        B type        |                  Result                  |
|---------------|----------------------|------------------------------------------|
|num or null (0)|   num or null (0)    |               Numeric sum                |
|     text      |         text         |New string concatenating A and B, in order|
| icon or /icon |    icon or color     |      New blended icon via ICON_ADD      |
|    matrix     |        matrix        |New matrix with components added together |
|turf or pixloc |        vector        |          New pixloc offset by B          |
|    vector     |        vector        |New vector with components added together |
|turf or pixloc |New pixloc offset by A|                                          |

### See also
- [\* operator](https://ref.dm-lang.org/operator/asterisk/index.md)
- [+= operator](https://ref.dm-lang.org/operator/plusequals.md)
- [- operator](https://ref.dm-lang.org/operator/minus.md)
- [/ operator](https://ref.dm-lang.org/operator/slash.md)
- [Add proc (list)](https://ref.dm-lang.org/list/proc/Add.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)
