Method RoundToCash
RoundToCash(MidpointRounding)
Returns a value rounded according to the currency's CashRoundingPolicy using the specified midpoint rounding mode (which defaults to ToEven "banker's rounding").
Declaration
public MonetaryValue RoundToCash(MidpointRounding mode = MidpointRounding.ToEven)
Parameters
| Type | Name | Description |
|---|---|---|
| MidpointRounding | mode |
Returns
| Type | Description |
|---|---|
| MonetaryValue |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | Cash rounding rules are not available for the currency. See CashRoundingPolicy for more information. |