On Aug 11, 9:40 am, "Adam W." <[EMAIL PROTECTED]> wrote: > 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?
If 15 digit precision is a concern, I would suggest that you us the decimal class instead of floating points. Floating point problems on X86 machines are well documented. http://docs.python.org/lib/module-decimal.html http://pydoc.org/2.4.1/decimal.html http://gmpy.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list