In article <[EMAIL PROTECTED]>,
 Paul Rubin <http://[EMAIL PROTECTED]> wrote:

> What's the deal with this?
> 
>     >>> print 3.2
>     3.2
>     >>> print [3.2]
>     [3.2000000000000002]
>     >>> 
> 
> Yes, I know that 3.2 isn't an exact binary fraction.  I'm wondering
> why it's converted differently depending on whether it's in a list.

That's intersting.  It looks like it's the difference between str() and 
repr():

>>> print str(3.2)
3.2
>>> print repr(3.2)
3.2000000000000002
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to