round function error???

Anthony ajdamico at gmail.com
Fri Jul 18 23:17:34 CEST 2008


Isn't this a mistake???

>>> round(3499.349439034,44)
3499.3494390340002
>>> round(_,2)
3499.3499999999999
>>> round(_,1)
3499.4000000000001

My Python 2.5.1 spat that out..



More information about the Python-list mailing list