Who told str() to round my int()'s!!!

Adam W. AWasilenko at gmail.com
Sat Aug 11 12:40:02 EDT 2007


After a fair amount of troubleshooting of why my lists were coming
back a handful of digits short, and the last digit rounded off, I
determined the str() function was to blame:

>>> foonum
0.0071299720384678782
>>> str(foonum)
'0.00712997203847'
>>>

Why in the world does str() have any business rounding my numbers, and
how do I get around this?




More information about the Python-list mailing list