summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-08-20 07:39:55 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-08-20 07:39:55 +0000
commita3a4aac4388fe5b0ae50f8ebe997f0bac7642686 (patch)
tree5fd38d4190d7edae55db1089eefbaaf74b96eb43
parent95077b085adbb703b84839b146e2293443a0ce29 (diff)
downloadmpfr-a3a4aac4388fe5b0ae50f8ebe997f0bac7642686.tar.gz
[doc/mpfr.texi] Detail the mpfr_min and mpfr_max description.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14563 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--doc/mpfr.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index 6757c9f02..bc7fdf717 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -3344,6 +3344,12 @@ and @var{op2} are both NaN, then @var{rop} is set to NaN@. If @var{op1}
or @var{op2} is NaN, then @var{rop} is set to the numeric value. If
@var{op1} and @var{op2} are zeros of different signs, then @var{rop}
is set to @minus{}0 (resp.@: +0).
+As usual, the NaN flag is set only when the result is NaN, i.e.,
+when both @var{op1} and @var{op2} are NaN.
+
+Note: These functions correspond to the minimumNumber and maximumNumber
+operations of IEEE@tie{}754-2019 for the result. But in MPFR, the NaN flag
+is set only when @emph{both} operands are NaN.
@end deftypefun
@deftypefun int mpfr_urandomb (mpfr_t @var{rop}, gmp_randstate_t @var{state})