Remainder (a mod n)1The remainder when a is divided by n.
Quotient (Integer division)3
About this calculator
What is Modulo?
The modulo operator returns the remainder or signed remainder of a division, after one number is divided by another (called the modulus of the operation).
💡
Pro Tips
In programming, % symbol is often used for modulo.
Modulo is useful for determining if a number is even (n % 2 == 0) or odd.
Used in cryptography and clock arithmetic.
!
Fun Facts
"Modulo 12 arithmetic is used every day when telling time."
"The result of modulo operation always has the same sign as the divisor in some definitions, but in Javascript % takes the sign of the dividend."
Formula: a mod n = r, where a = qn + r and 0 ≤ r < n