Modulo

noun

say it: “MOJ-uh-loh” /ˈmɑdʒəˌloʊ/

The remainder left over after dividing one whole number by another, written % in code.

What is modulo?

Modulo, written % and read "mod", gives the remainder after dividing: 392 mod 10 is 2, because 392 is 39 tens with 2 left over. The result is always smaller than the number you divide by, which is why a hash table uses it to turn any hash into a bucket number.

In a sentence

  • “392 modulo 10 is 2, because 392 is 39 tens with 2 left over.”

Level: Apprentice · More Software Development terms at this level

Updated

In other subjects