round(bigdecimal a, b)
Group |
Rounds value a to the nearest Double with b digits right from the decimal separator. Because BigDecimal is used internally, rounding errors are avoided as opposed to round(a).
Description of Parameters
Parameter |
Description |
a |
BigDecimal value. |
b |
(optional) Number of decimal digits. Default: 0 |
Examples
Parameter a |
Parameter b |
Result |
2.135 |
0 |
2 |
2.135 |
1 |
2.1 |
2.135 |
2 |
2.14 |