public static decimal Round( decimal amount, int decimalPlaces, RoundingRule roundingRule )
Parameters
- amount
- A decimal number to be rounded.
- decimalPlaces
- The number of significant decimal places (precision) in the return value.
- roundingRule
- Specification for how to round the decimal number.
Return Value
The number nearest amount with a precision equal to decimalPlaces.