Skip to content
Sign upLog in
← Back to Community

Rounding off number

Profile icon
MegatImranImran

print(round(1.3)) # gives 1
print(round(1.7)) # gives 2
print(round(-1.3)) # gives -1
print(round(-1.7)) # gives -2
print(round(10.5)) # gives 10

I'm stuck at rounding off 10.5 into 11, which I can't do at the moment :(

Please advice

The problem
Screenshot (6)


Screenshot (7)

comes from snakify's school desk

Voters
Profile icon
LoganClark6
Profile icon
MegatImranImran