HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
r
remquo(3M) remquo(3M)
NAME
remquo( ), remquof( ), remquol( ), remquow( ), remquoq( ) - remainder function with quotients
SYNOPSIS
#include <math.h>
double remquo(double x, double y, int *quo);
Itanium(R)-based System 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 2
n
to the magnitude of the integral quotient of x/y, where n is 7 on HP-UX systems.
Itanium-based System 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 argu-
ments 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 Itanium-based systems)
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 com-
piler 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.
SEE ALSO
fmod(3M), fabs(3M), remainder(3M), math(5).
STANDARDS CONFORMANCE
remquo(), remquof(), remquol() : ISO/IEC C99 (including Annex F, ‘‘IEC 60559 floating-point
arithmetic’’)
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 3−−879