Digital Solomon is not taking new clients at this time.

← All measures

Division with remainder

Math · Whole-number division giving a quotient and a remainder that is never negative, with the check and the decimal answer.

a = bq + r, 0 ≤ r < |b|, q = sign(b) × ⌊a / |b|⌋

Result

Turn on JavaScript to calculate.

How it works

The remainder is kept at 0 or more and below the size of the divisor, which is the convention of Euclid’s division lemma and of the mathematical mod. Some programming languages round the quotient towards zero and so return a negative remainder for a negative dividend; that value is in the last row.

Results are estimates for learning and planning. Check anything you rely on with a qualified professional.