Ask coding questions

← Back to all posts
Rounding off number
MegatImranImran (0)

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


comes from snakify's school desk