Find the remainder of a division problem
Enter an integer dividend and divisor to find the remainder left over after the division. This is also known as the modulo operation.
r
must be non-negative and satisfy 0 <= r < |divisor|
. For example, -17 mod 5 could be 3, because -17 = 5 * (-4) + 3. This calculator uses the %
operator common in many programming languages, where the sign of the remainder typically matches the sign of the dividend.a
(the dividend) and b
(the divisor), with b ≠ 0
, there exist unique integers q
(the quotient) and r
(the remainder) such that:0 <= r < |b|
.