A hack I'm going to use for now is changing the return in
str.StrPrinter._print_Real to the following

class StrPrinter....
...
...
   def _print_Real(self, expr):
        prec = expr._prec
        if prec < 5:
            dps = 0
        else:
            dps = prec_to_dps(expr._prec)
        return mlib.to_str(expr._mpf_, dps, strip_zeros=True)#<-- i
changed False to True
...
...

Should this not be the default?  I am trying to think of an instance
where someone might want to keep all the zeros for a simple floating
point like 1.0 at 15 dps?

-Bill

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to