Allocation
Allocation According to Ratios
Let's say our company has made a profit of 5 cents, which has to be divided amongst two investors that hold 70% and 30%. Cents can't be divided, so we can't give 3.5 and 1.5 cents. If we round up, the first investor gets 4 cents, the investor gets 2, which means we need to conjure up an additional cent.
The best solution to avoid this pitfall is to use allocation according to ratios.
The sum of an allocation is always guarenteed to be equal to the money instance it is called against.
Allocation to N Targets
An amount of money can be allocated to N targets using allocateTo()
.
Last updated
Was this helpful?