On Thu, Jun 17, 2010 at 2:33 PM, smichr <[email protected]> wrote: >> Now I'm relieved ;-) Thanks. BTW: I just learned that the new Python >> 3000 (py3k) will change this "ugly" float printing feature (repr(1.1) >> is then "1.1" not "1.1000...0002") -- finally!!!! >> -S. > > Are they changing the feature or changing the underlying number? only the string representation:
look here http://docs.python.org/dev/py3k/whatsnew/3.1.html > > Regarding the extra 0's I note that python reals and sympy reals are > not printed the same way. There is the str and repr form for python > reals but just one form for the sympy reals: > > # python real >>>> p = 304.8 >>>> print p; p > 304.8 > 304.80000000000001 > > # sympy real >>>> r = Real(303.8) >>>> print r;r > 303.800000000000 > 303.800000000000 > OK - I guess that's the answer then ... -S. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
