Navigation :
roundNext
roundNext, function
def const pure roundNext(quantity: number): number
Rounds quantity away from zero.
Example
show summary "roundNext" with
roundNext(-1.5) as "-1.5"
roundNext(-0.5) as "-0.5"
roundNext(0.5) as "0.5"
roundNext(1.5) as "1.5"
This outputs the following summary:
| -1.5 |
-0.5 |
0.5 |
1.5 |
| -2 |
-1 |
1 |
2 |
See also