JensGrabner / mpmath-2

Automatically exported from code.google.com/p/mpmath
Other
3 stars 0 forks source link

More options for mpf-to-string conversion #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
More options should be available for to_str, and to the user via nstr/nprint:

* It should be possible to choose whether to display the number in
fixed-point or floating-point format
* Even with the automatic fixed-point/floating-point detection, the
threshhold should be configurable
* It should be possible to choose an arbitrary base (2-36). Conversion
should be efficient for base 2 and 16.
* Directed rounding would be useful (at least in base 10). E.g. for
printing intervals, so that the printed decimal interval is at least as
wide as the exact binary one.

Original issue reported on code.google.com by fredrik....@gmail.com on 27 Sep 2008 at 6:56

GoogleCodeExporter commented 9 years ago
1 and 2 fixed in r878 and r879.

Original comment by fredrik....@gmail.com on 7 Feb 2009 at 7:28

GoogleCodeExporter commented 9 years ago
For reference: hcpy's formatting.

Original comment by Vinzent.Steinberg@gmail.com on 14 Feb 2009 at 2:14

Attachments: