What does modulo mean?
Modulo gives the remainder left after dividing one whole number by another. Here, 100 modulo 7 is 2, because 14 sevens make 98 and 2 is left over. The tool also shows the quotient and the full division line.
How does the calculator treat negative numbers?
It picks the remainder that is zero or more and smaller than the divisor's size. For -7 and 3, the quotient is -3 and the remainder is 2, since -3 times 3 is -9 and -9 plus 2 is -7.
Why does my programming language give a different answer?
Some languages keep the sign of the dividend in the remainder, so -7 % 3 gives -1 in JavaScript. This tool returns 2 instead. Adding the modulus to the language result brings the two into agreement.
What does congruent modulo m mean?
Two whole numbers are congruent modulo m when their difference divides evenly by m. The optional comparison box checks that exactly and writes the result with an equals-like sign or a crossed-out one.
What happens if the divisor is negative?
The modulus is the divisor without its sign, so dividing by -5 uses 5 for the remainder range. Only the quotient changes sign. For 12 and -5 the remainder stays 2 and the quotient is -2.
Is my data sent anywhere?
No. The sums run in your browser, and the page says the numbers are not uploaded or saved. Copy the result text before you leave if you want to keep it.