Anthony wrote:
Isn't this a mistake???round(3499.349439034,44)3499.3494390340002round(_,2)3499.3499999999999round(_,1)3499.4000000000001 My Python 2.5.1 spat that out..
No, round() return binary floats that, in general, cannot represent decimal floats exactly. Formatted printing gives what you expect.
>>> '%8.2f' % x ' 3499.35' -- http://mail.python.org/mailman/listinfo/python-list