I am trying to take the round of float number but in python for different float values it gives the different result. Example : -
>>> round(4.5)
4
and
>>> round(3.5)
4
as you can see the result round(4.5)
return 4
while rount(3.5)
return 4
. How to solve this problem. ? I want round(4.5)
to return 5
. Please help me out. Thanks