Round Procedure

Rounds x to the nearest integer. If x is halfway between two integers, then it is rounded to the nearest even number.
Declaration
function Round(x as Number) as Number

Parameters

Return value

Numberx rounded to the nearest integer.

Example

Code
print Round(5.4)
print Round(5.5)
print Round(5.6)
print Round(6.4)
print Round(6.5)
print Round(6.6)
print Round(-5.4)
print Round(-5.5)
print Round(-5.6)
print Round(-6.4)
print Round(-6.5)
print Round(-6.6)
Output
5
6
6
6
6
7
-5
-6
-6
-6
-6
-7