MoneyAllocate(Int32) Method
There are two overloads.
Allocates the money value into an equal number of shares using the instance
rounding strategy.
Namespace: InnerDrive.FinancialAssembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
public Money[] Allocate(
int shares
)
- shares Int32
- The number of shares to divide the money value into.
MoneyAn
ArrayList of
Money objects
To allocate money three ways equally:
Money money = new Money(1000);
Money[] results = money.Allocate(3);
results now contains three
Money objects with values of $333.34,
$333.33, and $333.33 respectively.