Floor Division Calculator
Divide signed real numbers and round the quotient toward negative infinity; also calculate the associated remainder.
Formula
q=floor(a/b); r=a−bq; b≠0.
Floor quotient q ≈ floor((-7)÷(3)) · Remainder r ≈ (-7)-(3)×(-3)
How to use
- Enter dividend a.
- Enter a nonzero divisor b.
- Read the floor quotient and remainder.
Examples
- −7 = 3×(−3)+2, so the floor quotient is −3.
Frequently asked questions
Does floor division truncate toward zero?
No. For example, −7/3 floors to −3.
Can the divisor be negative?
Yes. A nonzero remainder has the same sign as the divisor.
Are decimals allowed?
Yes. Results use floating-point arithmetic and displayed remainders are rounded.
Sources
Updated: