On Fri, Feb 20, 2009 at 7:32 AM, William Purcell
<[email protected]> wrote:
>
> 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?

If you want, as an exercise, try to run all sympy tests with your
patch to see if something gets broken. If not, try to send it as a
regular patch using git, see here for a tutorial:

http://docs.sympy.org/sympy-patches-tutorial.html#quick-start

Thanks,
Ondrej

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to