Math

Floor Division Calculator

Divide and round the result down to a whole number.

Parameters Live Compute
Calculated Output
a // b 3
Remainder 2
Formula: a // b = ⌊a ÷ b⌋
Step-by-Step Breakdown
1. Values used:
2. Dividend = 17
3. Divisor = 5
4.
5. a // b = 3
6. Remainder = 2
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

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.

Frequently Asked Questions

How does it handle negatives?

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

Advertisement