# * operator

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

### Format
> `A * B`

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

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

|    A type     |                 B type                  |                    Result                    |
|---------------|-----------------------------------------|----------------------------------------------|
|num or null (0)|             num or null (0)             |               Numeric product                |
| icon or /icon |          icon or num or color           |     New blended icon via ICON_MULTIPLY      |
|    matrix     |                 matrix                  |        New matrix, product of A and B        |
|      num      |        New matrix scaling A by B        |                                              |
|    vector     |   New matrix scaling A by B.x and B.y   |                                              |
|    vector     |                 vector                  |New vector with components multiplied together|
|    matrix     |New vector with 2D transformation applied|                                              |
|      num      |        New vector scaling A by B        |                                              |

### See also
- [\*= operator](https://ref.dm-lang.org/operator/asteriskequals.md)
- [+ operator](https://ref.dm-lang.org/operator/plus.md)
- [- operator](https://ref.dm-lang.org/operator/minus.md)
- [/ operator](https://ref.dm-lang.org/operator/slash.md)
- [operators](https://ref.dm-lang.org/operator/index.md)

## Pages

- [* pointer operator](https://ref.dm-lang.org/operator/asterisk/pointer.md)
