Skip to content

More options for mpf-to-string conversion #109

@fredrik-johansson

Description

@fredrik-johansson
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 for #109: http://code.google.com/p/mpmath/issues/detail?id=69

Original author: https://code.google.com/u/111502149103757882156/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions