Calculate the modulo (remainder) of dividing one number by another. The modulo operation finds the remainder after division and is widely used in programming, cryptography, and number theory.
Calculate the modulo (remainder) of dividing one number by another. The modulo operation finds the remainder after division and is widely used in programming, cryptography, and number theory.
The number to be divided.
The divisor. Must be a positive integer.
The modulo operation computes the remainder when a is divided by n. It is calculated as a - n × floor(a/n). For example, 17 mod 5 = 2 because 17 = 5 × 3 + 2.
How this calculator works
The modulo operation computes the remainder when a is divided by n. It is calculated as a - n × floor(a/n). For example, 17 mod 5 = 2 because 17 = 5 × 3 + 2.
Common questions about this calculator