Does round() always perfectly return the output expected or are there
some artifacts which don't allow perfect functionality
Using python 2.5:
12.23
12.234
12.199999999999 999
but was expecting 12.2
Also, for round(x,n), can't 'x' be an expression
round(5.25/2, 2)
was expecting 2.62 , but
2.6299999999999 999
some artifacts which don't allow perfect functionality
Using python 2.5:
>>round(12.23 4, 2)
>>round(12.23 4, 3)
>>round(12.23 4, 1)
>>>
Also, for round(x,n), can't 'x' be an expression
round(5.25/2, 2)
was expecting 2.62 , but
>>round(5.25/2, 2)
Comment