Mod

Find remainder after division of one number by another.

Modular arithmetic is used when we are only interested in what the remainder will be when we divide one number by another. For these cases there is an operator called the modulo operator (abbreviated as Mod).

Expression
Databox Value
Result
Comments

Mod(12)

38

2

Modular Arithmetic returns the remainder when divided by n. e.g. Mod(2) returns 0 for an even number and 1 for an odd number. Mod(12) can be used for Clock Arithmetic

Last updated