Problem whit float precision, 1.6 Windows 98

Juan Huertas jhg at galdon.com
Wed Sep 13 14:24:47 CEST 2000


Thank You, Remco.

But there are other problems whit the precision, for example:

>>> round(2020.685,2)
2020.6900000000001

Acording the Python Documentation, round(v,n):

Return the floating point value x rounded to "n digits after the decimal
point"

Juan H. Galdon

Granada, Spain.






More information about the Python-list mailing list