KiloAtlas
EN
EnglishBahasa IndonesiaTiếng Việt

Floor Division Calculator

Divide signed real numbers and round the quotient toward negative infinity; also calculate the associated remainder.

Floor quotient q

-3
Remainder r
2

Formula

q=floor(a/b); r=a−bq; b≠0.

Floor quotient q ≈ floor((-7)÷(3)) · Remainder r ≈ (-7)-(3)×(-3)

How to use

  1. Enter dividend a.
  2. Enter a nonzero divisor b.
  3. 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:

Related tools

Search conversion tools