IntegralRoundingStrategyRound 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
public 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.
IRoundingStrategyRound(Decimal, Int32) For the integral rounding strategy, Round(123.4567, 1) would
return 123.4, while Round(-123.4567, 2) would return -123.45.