The nearest integer number
round expression
Returns an integer number nearest to the value of expression.
Example:
print round 2.1
print round 2.5
print round 2.9
print round -2.1
print round -2.5
print round -2.9
Output:
2
2
3
-2
-2
-3
See also:
Table of Content