aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/rint.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-06-16 12:02:23 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-16 12:19:24 +0200
commit937a3e17a298f51857ad05af7bce029e16e5aefa (patch)
tree00d246d430a85540f69ca326a5cc1414b25e49e5 /man/man3/rint.3
parenta4d37517839f1a11a9c79c2d902aa02eb2fa8346 (diff)
downloadman-pages-937a3e17a298f51857ad05af7bce029e16e5aefa.tar.gz
ceil.3, floor.3, rint.3, round.3: POSIX.1-2008 doesn't define errors
Cc: Kir Kolyshkin <kolyshkin@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/rint.3')
-rw-r--r--man/man3/rint.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man/man3/rint.3 b/man/man3/rint.3
index 8095e68ce2..5298d8c8c2 100644
--- a/man/man3/rint.3
+++ b/man/man3/rint.3
@@ -91,7 +91,6 @@ is integral, +0, \-0, NaN, or infinite,
itself is returned.
.SH ERRORS
No errors occur.
-POSIX.1-2001 documents a range error for overflows, but see HISTORY.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
@@ -124,7 +123,7 @@ or raise an
.B FE_OVERFLOW
exception).
In practice, the result cannot overflow on any current machine,
-so this error-handling stuff is just nonsense.
+so this error-handling stuff was just nonsense.
(More precisely, overflow can happen only when the maximum value
of the exponent is smaller than the number of mantissa bits.
For the IEEE-754 standard 32-bit and 64-bit floating-point numbers
@@ -132,6 +131,7 @@ the maximum value of the exponent is 127 (respectively, 1023),
and the number of mantissa bits
including the implicit bit
is 24 (respectively, 53).)
+This was removed in POSIX.1-2008.
.P
If you want to store the rounded value in an integer type,
you probably want to use one of the functions described in