Understanding remainder results
Rebuild the dividend from quotient and remainder
For 23 divided by 7, three complete groups account for 21 and leave 2. The identity is 23 = 7×3 + 2. Rebuilding the original number checks the output without another division. If the remainder is nonzero, the exact quotient can also be written q + r/b. Here it is 3 + 2/7. A displayed decimal such as 3.285714 is rounded; the quotient-and-remainder identity preserves the exact integer relationship.
Track the sign under truncating division
Truncation moves a quotient toward zero. For −23/7, −3.2857 becomes −3, not −4. The resulting remainder is −2. For 23/(−7), the quotient is −3 and the remainder is 2. Under this convention, a nonzero remainder has the dividend’s sign, while its magnitude is smaller than the divisor’s magnitude. A zero remainder means exact divisibility regardless of the input signs. Read a negative result according to this rule rather than changing its sign by inspection.
Related calculations
- Modulo CalculatorCalculate modulo with worked steps, clear input conventions and a result table.
- Long Division CalculatorCalculate long division with worked steps, clear input conventions and a result table.
- Prime Factorization CalculatorBreak an integer into prime factors.