Method Round
|
Improve this Doc
View Source
Round(BigDecimal, RoundingMode)
Rounds the value to the nearest integer using the given rounding mode.
Declaration
public static BigDecimal Round(BigDecimal value, RoundingMode mode = RoundingMode.MidpointToEven)
Parameters
Returns
|
Improve this Doc
View Source
Round(BigDecimal, Int32, RoundingMode)
Rounds the value to the specified number of decimal places using the given rounding mode.
Declaration
public static BigDecimal Round(BigDecimal value, int decimals, RoundingMode mode = RoundingMode.MidpointToEven)
Parameters
Returns