Open GoogleCodeExporter opened 9 years ago
I think this is related to issue 69 and issue 66 (__format__
(http://docs.python.org/library/string.html#formatstrings)).
Please note that you can use '%.10e' % mpf(1.234567890e-10), but I don't know
how
good it works for high precisions.
However, the number formatting should be configurable.
Original comment by Vinzent.Steinberg@gmail.com
on 25 Jan 2009 at 8:01
Agreed, this needs to be fixed. These options should be added to to_str and
nstr, and
the __format__ method should be implemented.
I think this issue mostly duplicates 69 and 66.
Original comment by fredrik....@gmail.com
on 26 Jan 2009 at 2:02
This format is now possible using to_str(x, n, strip_zeros=False, min_fixed=0,
max_fixed=0). However, there is room for some more generalization, so this
interface
should not be considered final.
Original comment by fredrik....@gmail.com
on 7 Feb 2009 at 7:12
Original issue reported on code.google.com by
someonesdad1@gmail.com
on 25 Jan 2009 at 5:57