|
NAMEremainder , remainderf ,
remainderl , remquo ,
remquof , remquol —
minimal residue functions
LIBRARYMath Library (libm, -lm)SYNOPSIS#include <math.h>
double
float
long double
double
float
long double
DESCRIPTIONremainder (), remainderf (),
remainderl (), remquo (),
remquof (), and remquol ()
return the remainder r := x -
n∗y where n is the integer
nearest the exact value of x/y;
moreover if |n -
x/y| = 1/2
then n is even. Consequently the remainder is computed
exactly and |r| ≤
|y|/2. But attempting to take
the remainder when y is 0 or x is
±infinity is an invalid operation that produces a NaN.
The SEE ALSOfmod(3), ieee(3), math(3)STANDARDSTheremainder (), remainderf (),
remainderl (), remquo (),
remquof (), and remquol ()
routines conform to ISO/IEC 9899:1999
(“ISO C99”). The remainder is as defined in
IEEE Std 754-1985.
HISTORYTheremainder () and remainderf ()
functions appeared in 4.3BSD and
FreeBSD 2.0, respectively. The
remquo () and remquof ()
functions were added in FreeBSD 6.0, and
remainderl () and remquol ()
were added in FreeBSD 8.0.
Visit the GSP FreeBSD Man Page Interface. |