Quotient and Remainder

Divide two integers and find quotient and remainder.

Formula

a = b×q + r; q = floor(a/b); r = a mod b
  • a = b×q + r; q = floor(a/b); r = a mod b

Quotient and Remainder

Quotient and Remainder calculation.

Frequently asked questions

How is Quotient and Remainder calculated?
a = b×q + r; q = floor(a/b); r = a mod b