diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-01-08 17:52:26 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-01-08 17:52:26 +0000 |
commit | 76a7050c7d68f55ee374f259edbbd0cbe456e673 (patch) | |
tree | c11568cb466ba8a4ce22ad939b117b505b3a269a /TODO | |
parent | 17e1c7266b1ae36fd50e8942b249a0520dfdec20 (diff) | |
download | mpfr-76a7050c7d68f55ee374f259edbbd0cbe456e673.tar.gz |
[TODO] + base conversion with the round-trip property using a minimal
precision, such as the to_chars functions from the C++ standard.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13651 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -288,6 +288,22 @@ Table of contents: - mpfr_cmp_uj and mpfr_cmp_sj. They would be useful to test MPFR with _MPFR_EXP_FORMAT=4. +- base conversion with the round-trip property using a minimal precision, + such as the to_chars functions from the C++ standard: + + The functions [...] ensure that the string representation consists + of the smallest number of characters such that there is at least + one digit before the radix point (if present) and parsing the + representation using the corresponding from_chars function + recovers value exactly. [Note: This guarantee applies only if + to_chars and from_chars are executed on the same implementation. + — end note] If there are several such representations, the + representation with the smallest difference from the + floating-point argument value is chosen, resolving any remaining + ties using rounding according to round_to_nearest. + + Text from: https://www.zsh.org/mla/workers/2019/msg01138.html + ############################################################################## 5. Efficiency ############################################################################## |