summaryrefslogtreecommitdiffstats
path: root/man3/nextup.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/nextup.3')
-rw-r--r--man3/nextup.315
1 files changed, 7 insertions, 8 deletions
diff --git a/man3/nextup.3 b/man3/nextup.3
index 7a0eaaa..422143d 100644
--- a/man3/nextup.3
+++ b/man3/nextup.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH nextup 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH nextup 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
nextup, nextupf, nextupl, nextdown, nextdownf, nextdownl \-
return next floating-point number toward positive/negative infinity
@@ -14,11 +14,11 @@ Math library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <math.h>
-.PP
+.P
.BI "double nextup(double " x );
.BI "float nextupf(float " x );
.BI "long double nextupl(long double " x );
-.PP
+.P
.BI "double nextdown(double " x );
.BI "float nextdownf(float " x );
.BI "long double nextdownl(long double " x );
@@ -31,7 +31,7 @@ and
.BR nextupl ()
functions return the next representable floating-point number greater than
.IR x .
-.PP
+.P
If
.I x
is the smallest representable negative number in the corresponding type,
@@ -40,7 +40,7 @@ If
.I x
is 0, the returned value is the smallest representable positive number
of the corresponding type.
-.PP
+.P
If
.I x
is positive infinity, the returned value is positive infinity.
@@ -49,12 +49,12 @@ If
is negative infinity,
the returned value is the largest representable finite negative number
of the corresponding type.
-.PP
+.P
If
.I x
is Nan,
the returned value is NaN.
-.PP
+.P
The value returned by
.I nextdown(x)
is
@@ -82,7 +82,6 @@ T{
.BR nextdownl ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
These functions are described in
.I IEEE Std 754-2008 - Standard for Floating-Point Arithmetic