Worked example
Balloon total including spares: 110
Inputs
- Garland length (m): 5
- Measured balloons per metre: 20
- Size mix weights in your chosen order: 3,2
- Spare percentage (%): 10
Use a measured balloon density and relative size weights.
Use the units shown.
Round up length × balloons per metre × (1 + spare percentage/100).
Allocate total in proportion to weights, round down each, then give remaining balloons to the largest fractional remainders. Ties use input order.
Use a measured balloon density and relative size weights. Allocates the rounded total by largest fractional remainder; ties favour the earlier size. Weights need not sum to 100. Spare percentage is an additional quantity, not an expected failure probability.
OpenStax: geometric formulas and arithmetic ↗Balloon total including spares: 110
Balloon total including spares: 7