A payment of 10.00 must be divided among three recipients in the ratio 3:2:1. All three resulting shares must be expressed to two decimal places. The ideal shares are not all representable at that scale, so someone must receive the remaining unit. Checking that the results add back to 10.00 will not tell you who.
That missing question matters when comparing financial software. Two mechanisms can preserve the same source amount and currency while implementing different recipient policies. Calling the difference an arithmetic defect skips the very assumption a reviewer needs to inspect.
A small reconstructed comparison
The following is an educational reconstruction of the policy difference retained in CE-FINDING-0001. It is not a fresh execution of either implementation. The source amount is 10.00 USD, the target scale is 2 and the declared ratios are [3, 2, 1]. At this scale there are 1,000 allocation units. The integer base shares are 500, 333 and 166 units, leaving one unit to assign.
| Recipient in declared order | Base amount | Core declared-order result | Largest-fractional-loss illustration |
|---|---|---|---|
| First, weight 3 | 5.00 USD | 5.01 USD | 5.00 USD |
| Second, weight 2 | 3.33 USD | 3.33 USD | 3.33 USD |
| Third, weight 1 | 1.66 USD | 1.66 USD | 1.67 USD |
| Total | 9.99 USD | 10.00 USD | 10.00 USD |
The third base share discarded the largest fractional part. A mechanism that prioritizes that fractional loss assigns it the unit. Core assigns remaining units to the earliest declared positions instead. The source unit is a cent in this illustration; the general question concerns the declared allocation unit, not a universal two-decimal currency rule.
What the pinned source actually contributes
The selected historical MoneyPHP reading concerns v4.9.0, commit d49ee625c6ba79b9d7a228ce153b02fc1032152b. Its allocator tracks base shares and a remainder, ranks computed fractional losses and uses supplied order to break equal-score ties. The original pinned allocation function lets a reader inspect that mechanism. MoneyPHP contributors own the implementation; FinKore's source investigators supplied the bounded reading and comparison.
This is an allocation-path observation. Intermediate calculator precision and binary floating-point ranking limit the conclusions that can be drawn for other inputs. It is not a proof of exact conservation for every request or calculator. The retained historical publication says not_executed. Later execution observations exist separately in the collection; they are not a new run of this article's example and are not merged into its evidence state.
What Core chooses, and what it does not settle
Money Allocation defines the current portable contract. MONEY-ALLOCATION-008 requires conservation; MONEY-ALLOCATION-009 defines base allocation in exact integer units; and MONEY-ALLOCATION-010 assigns the remainder in declared order. These obligations answer separate questions. A total-only check can detect a lost unit while missing an incorrect recipient.
Declared order is observable input. Reordering recipients before calling the operation can therefore change the result without changing the weights' total. An integration needs to preserve that order intentionally. It also needs to translate amount representations correctly: the source library's integer minor units and Core's decimal Money observations are not interchangeable request encodings merely because the examples describe the same monetary amount.
Neither policy is a universal accounting recommendation. This comparison does not decide tax apportionment, invoice reconciliation, contractual fairness or which recipient ought to benefit in a particular business. Those questions need the relevant composing domain and its actual obligations.
A more useful review question
Instead of asking whether an allocator is “correct” in the abstract, ask which properties the claim includes: representable input, currency preservation, conservation, recipient policy, tie handling, signed amounts and unchanged source operands. A plausible review can fail at any one of those boundaries while passing the others.
For this positive, small-unit illustration, the key disagreement is easy to locate. A preserving total is necessary, but it does not identify the business choice hidden in the final unit. Before comparing libraries, write that choice down. Before applying the comparison to new inputs, inspect the source's actual range and precision limits.
Sources and further reading
- Existing selected comparison, preserving CE-FINDING-0001 and its historical scope.
- M03 case A, distinguishing alternative policy from a general defect.
- Canonical allocation requirements, which define Core behavior rather than the external implementation.
Citing this publication
FinKore. The last cent is a policy decision. PUB-0009. Publication date not recorded. Canonical URL: https://finkore.dev/article-last-cent-policy.html.
Cite original studies for their findings; cite this publication for its own interpretation. Existing licensing and third-party rights remain in force.
Related reading
- A rounding mode does not choose when to round — Residual recipient and rounding boundary must not be collapsed into one policy.
All public publications · Challenge a claim or suggest a correction
