Method RoundToCash
RoundToCash(MidpointRounding)
Rounds each value's amount according to its currency's CashRoundingPolicy using the specified midpoint rounding mode (which defaults to ToEven "banker's rounding").
Declaration
public void RoundToCash(MidpointRounding mode = MidpointRounding.ToEven)
Parameters
| Type | Name | Description |
|---|---|---|
| MidpointRounding | mode |
Implements
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | Cash rounding rules are not available for one of the currencies in the bag. See CashRoundingPolicy for more information. |