Top | Up (Rounding) | < Previous (FLOOR) | Next (CEIL) >
Rounds to the nearest whole number. .5
is rounded up (away from 0).
ROUND number# OUT whole_number#
ROUND integer% OUT integer%
PRINT ROUND(6.2) '6
PRINT ROUND(10.5) '11
PRINT ROUND(-2.5) '-3
Input | Output |
---|---|
-0.5 | -1 |
0.5 | 1 |
1.5 | 2 |
-0 | 0 |
infinity | infinity |
NaN | NaN |