summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-20 11:41:54 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-20 11:41:54 +0000
commit0ef3923b1bf843cfc7f3849c7c45c9b144aaa7a2 (patch)
tree3c022b4a980b669d2feedd35fcca5f61085f3347 /doc
parent7c7e498e671afffee020ddd3cd6752249f891bb6 (diff)
downloadmpfr-0ef3923b1bf843cfc7f3849c7c45c9b144aaa7a2.tar.gz
[doc/mpfr.texi] For mpfr_get_str, explicitly say that the inexact flag
is set iff the result is inexact (since this may not be obvious and this wasn't the case until now). In the compatibility section, mention this change. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11073 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'doc')
-rw-r--r--doc/mpfr.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index 4d7b53c61..751f8031d 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -1611,6 +1611,8 @@ The extra two bytes are for a possible minus sign, and for the terminating null
character, and the value 7 accounts for @code{-@@Inf@@}
plus the terminating null character. The pointer to the string @var{str}
is returned (unless the base is invalid).
+
+Like in usual functions, the inexact flag is set iff the result is inexact.
@end deftypefun
@deftypefun void mpfr_free_str (char *@var{str})
@@ -3848,7 +3850,7 @@ is set were unspecified.
@item @code{mpfr_get_str} changed in MPFR 4.0.
This function now sets the NaN flag on NaN input (to follow the usual MPFR
rules on NaN and IEEE 754-2008 recommendations on string conversions from
-Subclause 5.12.1). The previous behavior was regarded as a bug.
+Subclause 5.12.1) and sets the inexact flag when the conversion is inexact.
@item @code{mpfr_get_z} changed in MPFR 3.0.
The return type was @code{void}; it is now @code{int}, and the usual