string to float, putting in list/tuple

Tim Peters tim.one at comcast.net
Mon Oct 14 15:52:44 EDT 2002


[Daniel Barié]
> ...
> But when stuffing a list with these floats the result is not as I
> expect it to be:
> [0.031690000000000003, -3.0099999999999998, -3.0099999999999998]
>
> What happened?

Binary floating point happened:

    http://tinyurl.com/1za6






More information about the Python-list mailing list