Python
Write an awesome doc for Python. A very nice an practical one extracted from Python official documentation.
Floored quotient
floored quotient×divisor+remainder

- The result of performing integer division where the quotient is rounded down (floored) to the nearest integer.
- This equation is a restatement of the division algorithm:
dividend=quotient×divisor+remainder
Floored quotient
7÷3=2
−7÷3=−3
- Floored quotient is
−3
−7÷3=−2.333...
, and rounding down gives −3
.
Divisor:
- The number by which the dividend is being divided.
Remainder:
- The leftover value when the dividend is divided by the divisor.
- It satisfies this condition:
0≤ ∣remainder∣ < ∣divisor∣
.