Floor Division Calculator

Floor Division Calculator

Divide two numbers and round down to the nearest integer. Discover quotient, remainder, and the difference from standard division.

Last updated: May 2026 | By Patchworkr Team

Enter a dividend and divisor

Floor Division Reference

DividendDivisorStandardFloor (//) Remainder (%)
1033.3331
-73-2.33-32
1753.432
2045.050
-103-3.33-42

What is Floor Division?

Floor division is the operation of dividing two numbers and rounding down to the nearest integer (towards negative infinity). It differs from standard division in that it always returns an integer result, and for negative numbers, it rounds away from zero rather than towards it.

In programming, floor division is represented by the `//` operator in Python and many other languages. It's essential for algorithms requiring integer results: array indexing, pixel coordinates, pagination math, and resource distribution. The companion operator modulo (`%`) gives the remainder, and together they satisfy: $a = (a \div b) \times b + (a \bmod b)$.

Floor vs Standard Division

Key difference: what happens to decimals

Standard Division
10 ÷ 3 = 3.3333...
-7 ÷ 3 = -2.3333...
Floor Division (//)
10 // 3 = 3
-7 // 3 = -3

Note: For negative numbers, floor always rounds down (towards negative infinity), not towards zero.

Worked Example: 17 ÷ 5

Standard:
17 ÷ 5 = 3.4
Floor down:
Round towards negative infinity = 3
Remainder:
17 - (3 × 5) = 2
Verify:
(3 × 5) + 2 = 17

Frequently Asked Questions

Is floor division the same as truncation?

For positive numbers, yes. For negative numbers, no—truncation rounds towards zero (-2.9 → -2), while floor always rounds down to -3.

Why use floor division?

It's essential for array indexing, pagination, binning items, pixel calculations, and any algorithm needing guaranteed integer results.

What does modulo (%) do?

The modulo operator returns the remainder. It pairs with floor division: dividend = quotient × divisor + remainder.

Why does -7 // 3 = -3?

Because floor rounds towards negative infinity. The exact result -2.33... rounds down to -3, not up to -2.

How do I use this in Python?

Simply use the // operator: result = 10 // 3 yields 3. Also works with negative numbers as expected.

What about floating-point numbers?

Floor division works on floats too: 7.5 // 2 = 3.0. Always rounds down regardless of decimal values.

Is remainder always positive?

Sign conventions vary by language. Python ensures remainder has same sign as divisor; JavaScript % can be negative.

Can I recover the original dividend?

Yes: dividend = (quotient × divisor) + remainder. This identity always holds for floor division.

Related Tools