Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > R


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


remquo(), remquof(), remquol(), remquow(), remquoq() — remainder function with quotients


#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);


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.


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.


The remquo() function returns the same values and raises the same exceptions as remainder().


No errors are defined.


remquo(), remquof(), remquol() : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'')

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.