diff options
Diffstat (limited to 'man7/math_error.7')
| -rw-r--r-- | man7/math_error.7 | 18 |
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" |
