# %= operator

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

### Format
> `A %= B`

Set A equal to `A % B`. It is shorthand for `A = A % B`.

`A % B` is read "A modulo B", which stands for the remainder of A divided by B. A and B are truncated to integers before the modulo; use `%25%25=` instead to work with fractional values.

If A is a vector, it will be modified by this operation.

### See also
- [% operator](https://ref.dm-lang.org/operator/modulo.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
