IRoundingStrategyRound Method
Returns a decimal rounded to the nearest value of 10^-n.
Namespace: InnerDrive.FinancialAssembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
decimal Round(
decimal value,
int decimals
)
- value Decimal
- The value to round to a given number of significant digits.
- decimals Int32
- The number of significant digits to round the value.
DecimalA
Decimal value rounded to a given number of significant digits.
For the default rounding strategy, Round(123.4567, 1) would
return 123.4, while Round(-123.4567, 2) would return -123.46.