Method Round
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
Round(BigDecimal, int, 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