Precision issue

Ladvánszky Károly aa at bb.cc
Fri Oct 10 04:56:43 EDT 2003


Entering 3.4 in Python yields 3.3999999999999999.
I know it is due to the fact that 3.4 can not be precisely expressed by the
powers of 2. Can the float handling rules of the underlying layers be set
from Python so that 3.4 yield 3.4?

Thanks,

Károly






More information about the Python-list mailing list