PRACTICAL CALCULATIONS

Whole-unit proportional allocation calculator

Enter the available whole units and comma-separated nonnegative integer weights. The final allocations add back to the supplied total.

Result

Allocated units
10
Weight total
3
Tie rule
Earlier input position first
PositionWeightFloorRemainder fractionFinal units
1131/34
2131/33
3131/33

Assign floors, then remaining units

Ten units with weights 1,1,1 have exact shares of ten thirds each. The floors allocate nine units. One remaining unit goes to the first input position, producing 4,3,3. Equal remainders are resolved by earlier position.

Interpret the allocation method

Each floor comes from total × weight divided by the sum of weights. Remaining units go to the largest fractional remainders. This stated arithmetic rule does not establish fairness for a particular business or voting process, and changing the total can change an individual allocation unexpectedly. Use 1 to 100 weights, at least one positive; the total and each weight must be whole integers from zero through 10^12.

Work through the reasoning

Checking a largest-remainder allocation without losing units