Name

round()

Examples
x = 9.2
rx = round(x)  # Sets 'rx' to 9
y = 9.5
ry = round(y)  # Sets 'ry' to 10
z = 9.9
rz = round(z)  # Sets 'rz' to 10
Description
Syntax
round(n)
Parameters
n
Related floor()
ceil()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License