Split a money amount into parts that sum exactly to the total
https://agents.writerslogic.com/api/v1/allocateOverview
Splits one signed amount into up to 500 parts by weights (or equal parts), in integer minor units of its currency, for an agent dividing a bill, a refund, a fee or a tax. Each share is rounded under the declared mode, then the leftover minor units are assigned by the declared remainder policy, so the parts always sum to the total exactly. Negative totals (refunds) are supported; zero-weight parts get zero. Fails when the total has more fraction digits than the currency, or th