Modulo Operation

The modulo (or "modulus" or "mod") is the remainder after dividing one number by another.

Example: 100 mod 9 equals 1

Because 1009 = 11 with a remainder of 1


14 mod 12 equals 2

12 Hour Time

12-hour time uses modulo 12

Example: 14 mod 12 equals 2

Because 1412 = 1 with a remainder of 2

So 14 o'clock becomes 2 o'clock.

It is like we aren't interested in how many times we go around, just where we end up.

Play with adding numbers using different modulo values here:

Notation

We normally write "mod": 14 mod 12 = 2

Some programming languages use the percent sign: 14 % 12 = 2, but % is just a convenient symbol and has nothing to do with percents.

Modulus after Multiplication

You can also have a play with this. It multiplies each number by your chosen value, then links to the modulus of that multiplication. It makes some really interesting patterns:


Copyright © 2020 MathsIsFun.com