Divide two numbers and round down toward negative infinity, with quotient and remainder shown live.
Last updated: June 2026 | By Patchworkr Team
Floor division returns the greatest integer less than or equal to the exact quotient. That makes it different from truncation when negative numbers are involved.
The remainder is whatever is left after subtracting quotient x divisor from the dividend. With floor division, the identity always stays true.
Example: floor(17 / 5) = 3 with remainder 2.
Evaluate -7 floor-divided by 3.
1. Compute the exact quotient: -7 / 3 = -2.333333...
2. Floor rounds down to -3.
3. Use the identity: -7 = (-3 x 3) + 2.
Final answer: -3 remainder 2
Related Tools