round(a, b)
|
Group |
Rounds value a to the nearest Double with b digits after the separator. Because Doubles are used internally there might be rounding errors or conversion to scientific form.
Description of Parameters
|
Parameter |
Description |
|
a |
Double value. |
|
b |
Number of decimal digits. |
Examples
|
Parameter a |
Parameter b |
Result |
|
2.135 |
0 |
2 |
|
2.135 |
1 |
2.1 |
|
2.135 |
2 |
2.14 |