[issue7010] Rounding when converting float tuple to str

Eric Smith report at bugs.python.org
Mon Sep 28 10:55:20 CEST 2009


Eric Smith <eric at trueblade.com> added the comment:

What OS, processor, and Python version are you running this code on?

>From your example, it's Python 3.x. 3.1 has a completely rewritten
float->decimal conversion system, and I get different results.

>>> print(.1)
0.1
>>> print((.1,))
(0.1,)
>>> 

For 2.6 and 3.0, you'll get the old behavior, and this won't change. Are
you really using Python 3.0 (which is marked in the versions)? If so,
switch to 3.1 and see what you get.

----------
nosy: +eric.smith, mark.dickinson
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7010>
_______________________________________


More information about the Python-bugs-list mailing list