I built Allocation Proration to split a fixed amount across recipients. One test I like is an equal three-way split of $100. Round each share independently and the total comes out to $99.99. Working in integer cents avoids floating-point surprises, but you still have to decide who gets cent number 10,000.
That choice gets more interesting when the split runs every month. A stable tie-break is easy to reproduce. Rotating the extra cent spreads it around, but now a rerun needs to know whose turn it was. Which rule would you use for a recurring allocation?
Top comments (0)