What's the deal with this?
print 3.2
3.2
print [3.2]
[3.2002]
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.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
What's the deal with this?
print 3.2
3.2
print [3.2]
[3.2002]
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.
`print 3.2` == `print str(3.2)`.
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.2002]
Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering
why it's converted differently depending on
Paul Rubin wrote:
What's the deal with this?
print 3.2
3.2
print [3.2]
[3.2002]
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.
It's not. The difference is that print uses