Skip to content

Mod

Mod(x, m)

returns x modulo m.

See

Examples

>> Mod(14, 6)
2
>> Mod(-3, 4)
1
>> Mod(-3, -4)
-3

The argument 0 should be nonzero

>> Mod(5, 0)
Mod(5, 0)

Implementation status

  • ✅ - full supported

Github