summaryrefslogtreecommitdiff
path: root/mpfr.texi
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr.texi')
-rw-r--r--mpfr.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpfr.texi b/mpfr.texi
index 8440e2e78..fea9fde3f 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -566,12 +566,14 @@ precision, then MPFR will still compute the result with full precision.
@section Rounding Modes
The following four rounding modes are supported:
+
@itemize @bullet
@item @code{GMP_RNDN}: round to nearest
@item @code{GMP_RNDZ}: round towards zero
@item @code{GMP_RNDU}: round towards plus infinity
@item @code{GMP_RNDD}: round towards minus infinity
@end itemize
+
The @samp{round to nearest} mode works as in the IEEE 754-1985 standard: in
case the number to be rounded lies exactly in the middle of two representable
numbers, it is rounded to the one with the least significant bit set to zero.