Modulo

Modulo is a mathematical operator commonly found in computing. The modulo operator will return the remainder of a division operation.

For instance if wanted to know what the remainder of 17 and 7 was we could do something like this:

print(17 % 7)

In this case would get a remainder of:

3

Now for that example I used Python, but almost any programming language has a modulo operator.

This page was last updated: 2024-10-31 Thu 18:31. Source