string to float problem

Martin v. Loewis martin at v.loewis.de
Wed Oct 16 15:59:51 EDT 2002


jubafre at brturbo.com writes:

> and in my aplicattion make diference i, how can i transform this
> string in a float number, i want 10.60 in float?

That is not possible. Your computer cannot represent 10.60 in binary
float, see

http://www.python.org/cgi-bin/faqw.py?req=all#4.98

Regards,
Martin





More information about the Python-list mailing list