diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 14:06:06 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 14:06:06 +0000 |
commit | 06b1fc1065b97c061e8d79081d4904edd3d7857b (patch) | |
tree | c5dbd5aca01c4880217faa8ce4a3a27e5ccb9fba | |
parent | 8e5ba1b332a94630c30b7dcdf4297b99d506622a (diff) | |
download | mpfr-06b1fc1065b97c061e8d79081d4904edd3d7857b.tar.gz |
[doc/mpfr.texi] More details for mpfr_fpif_export and mpfr_fpif_import.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11920 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | doc/mpfr.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi index 9c68fedda..7d105b8a2 100644 --- a/doc/mpfr.texi +++ b/doc/mpfr.texi @@ -2496,7 +2496,7 @@ interchange format. In particular one can export on a 32-bit computer and import on a 64-bit computer, or export on a little-endian computer and import on a big-endian computer. -The precision of @var{op} and the sign of a NaN are stored too. +The precision of @var{op} and the sign bit of a NaN are stored too. Return 0 iff the export was successful. Note: this function is experimental and its interface might change in future @@ -2506,7 +2506,8 @@ versions. @deftypefun int mpfr_fpif_import (mpfr_t @var{op}, FILE *@var{stream}) Import the number @var{op} from the stream @var{stream} in a floating-point interchange format (see @code{mpfr_fpif_export}). -The precision of @var{op} is read from the stream. +Note that the precision of @var{op} is set to the one read from the stream, +and the sign bit is always retrieved (even for NaN). If the stored precision is zero or greater than @code{MPFR_PREC_MAX}, the function fails (it returns non-zero) and @var{op} is unchanged. If the function fails for another reason, @var{op} is set to NaN and it is |