Mathematics · Interactive tool
Remainder and Modulo
Calculate an exact decimal remainder with a stated quotient convention.
Your inputs
Result
Calculated output
Enter inputs to calculate.
r=x-qy. Truncation uses q=trunc(x/y); floor modulo uses q=floor(x/y). The remainder convention determines the sign for negative operands.