NAME
remquo(), remquof(), remquol(), remquow(), remquoq() — remainder function with quotients
SYNOPSIS
#include <math.h>
double remquo(double x, double y, int *quo);
HP Integrity Server Only
float remquof(float x, float y, int *quo);
long double remquol(long double x, long double y, int *quo);
extended remquow(extended x, extended y, int *quo);
quad remquoq(quad x, quad y, int *quo);
DESCRIPTION
The
remquo()
function computes the same remainder as the
remainder()
function. In the object pointed to by
quo
it stores a value whose sign is the sign of
x/y
and whose magnitude is congruent mod
2n
to the magnitude of the integral quotient of
x/y,
where
n
is 7 on HP-UX systems.
Integrity Server Only
remquof()
is a
float
version of
remquo();
it takes
float
first and second arguments and returns a
float
result.
remquol()
is a
long double
version of
remquo();
it takes
long double
first and second arguments and returns a
long double
result.
remquow()
is an
extended
version of
remquo();
it takes
extended
first and second arguments and returns an
extended
result.
remquoq()
is equivalent to
remquol()
on HP-UX systems.
USAGE
To use these functions, compile either with the default
-Ae
option or with the
-Aa
and
-D_HPUX_SOURCE
options.
To use (for Integrity servers)
remquow()
or
remquoq(),
compile also with the
-fpwidetypes
option.
Make sure your program includes
<math.h>.
Link in the math library by specifying
-lm
on the compiler or linker command line.
RETURN VALUE
The
remquo()
function returns
the same values and raises the same exceptions as
remainder().
ERRORS
No errors are defined.
STANDARDS CONFORMANCE
remquo(),
remquof(),
remquol()
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'')