Selected historical publication
Money PHP — Allocation rules
In the inspected allocation path, base shares retain the source currency and a tracked remainder is redistributed in whole source units. The recipient with the greatest computed fractional loss is selected first; supplied order breaks equal-score ties. This is an explicit allocation policy, not permission to discard or create a monetary residual. The implementation and upstream allocation explanation support this reading.
Allocation path only. Amount and currency are retained, but largest-fraction recipient selection differs from Core declared-order distribution. BCMath intermediates and float ranking were not executed or exhaustively verified.
Keep the boundary in view
Allocation path only. Amount and currency are retained, but largest-fraction recipient selection differs from Core declared-order distribution. BCMath intermediates and float ranking were not executed or exhaustively verified.
This selected interpretation records not executed. Later execution summaries are separate historical observations; this page does not refresh or merge them.
Inspect the source
Commit d49ee625c6ba79b9d7a228ce153b02fc1032152b; source investigation and publication are distinct from financial acceptance.
- Money\Money::allocate
- Unnamed closure
- Money\Money::allocateTo
- Money\Calculator\BcMathCalculator::share
- Money\Calculator\BcMathCalculator::floor
- Money\Money::__construct
- Money\Calculator\BcMathCalculator::subtract
- Money\Calculator\BcMathCalculator::add
- Money\Calculator\BcMathCalculator::compare
