aboutsummaryrefslogtreecommitdiffstats
path: root/man7/math_error.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2017-08-16 03:01:48 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-08-16 03:06:54 +0200
commit5711c04f8fd207d9eafb2b6ba525ea940dde8a9b (patch)
tree57db69b121fb0a36261aaa0946d1da7192d79a6f /man7/math_error.7
parenteabf3ae555dd8291faed51e860c01aaaefb1b809 (diff)
downloadman-pages-5711c04f8fd207d9eafb2b6ba525ea940dde8a9b.tar.gz
environ.7, epoll.7, feature_test_macros.7, futex.7, ip.7, ipv6.7, locale.7, man-pages.7, man.7, math_error.7, netdevice.7, netlink.7, packet.7, raw.7, rtld-audit.7, rtnetlink.7, sock_diag.7, socket.7, tcp.7, udp.7, udplite.7, unix.7, uri.7, vdso.7: Formatting fix: replace blank lines with .PP/.IP
Blank lines shouldn't generally appear in *roff source (other than in code examples), since they create large vertical spaces between text blocks. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/math_error.7')
-rw-r--r--man7/math_error.718
1 files changed, 9 insertions, 9 deletions
diff --git a/man7/math_error.7 b/man7/math_error.7
index 5e457f64b8..fced6e0979 100644
--- a/man7/math_error.7
+++ b/man7/math_error.7
@@ -50,7 +50,7 @@ and
as outlined below)
described in
.BR fenv (3).
-
+.PP
A portable program that needs to check for an error from a mathematical
function should set
.I errno
@@ -63,7 +63,7 @@ feclearexcept(FE_ALL_EXCEPT);
.fi
.in
before calling a mathematical function.
-
+.PP
Upon return from the mathematical function, if
.I errno
is nonzero, or the following call (see
@@ -87,7 +87,7 @@ fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW |
.\" FE_INEXACT = 0x20
.\" };
then an error occurred in the mathematical function.
-
+.PP
The error conditions that can occur for mathematical functions
are described below.
.SS Domain error
@@ -137,7 +137,7 @@ occurs when the magnitude of the function result means that it
cannot be represented in the result type of the function.
The return value of the function depends on whether the range error
was an overflow or an underflow.
-
+.PP
A floating result
.I overflows
if the result is finite,
@@ -159,7 +159,7 @@ is set to
and an "overflow"
.RB ( FE_OVERFLOW )
floating-point exception is raised.
-
+.PP
A floating result
.I underflows
if the result is too small to be represented in the result type.
@@ -174,7 +174,7 @@ may be set to
and an "overflow"
.RB ( FE_UNDERFLOW )
floating-point exception may be raised.
-
+.PP
Some functions deliver a range error if the supplied argument value,
or the correct function result, would be
.IR subnormal .
@@ -206,7 +206,7 @@ A few functions set
but don't raise an exception.
A very few functions do neither.
See the individual manual pages for details.
-
+.PP
To avoid the complexities of using
.I errno
and
@@ -237,7 +237,7 @@ mathematical functions (i.e., those declared by
.IR <complex.h> ),
which in general are not required to return errors by C99
and POSIX.1.
-
+.PP
The
.BR gcc (1)
.I "-fno-math-errno"
@@ -262,5 +262,5 @@ An error can still be tested for using
.BR isgreater (3),
.BR matherr (3),
.BR nan (3)
-
+.PP
.I "info libc"