Floor Division Calculator

Divide and round the result down to a whole number.

a // b 3
Remainder 2

Formula: a // b = ⌊a ÷ b⌋

Step-by-step with your numbers:
1. Values used:
2. Dividend = 17
3. Divisor = 5
4.
5. a // b = 3
6. Remainder = 2
Did we solve your problem today?

Floor division gives the whole-number part of a division, rounding toward negative infinity.

The math behind it

a // b = ⌊a ÷ b⌋. The matching remainder is a − b·(a // b), which always has the same sign as the divisor.

Worked example

17 // 5 = 3, remainder 2.

FAQ

How does it handle negatives?

−17 // 5 = −4 (rounded down), not −3.