Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
remquo(3) Guardian Native C Library Calls Reference Manual
NAME
remquo - Computes the remainder of a division operation with quotient
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
double remquo(
double x,
double y
int *quo);
PARAMETERS
x Is a double number that is the numerator of the division.
y Is a double number that is the denominator of the division.
quo Is the quotient value of the division.
DESCRIPTION
The remquo() function computes the same remainder as the remainder() function. In the
object pointed to by quo, the remquo() function stores a value whose sign is the sign of x/y and
whose magnitude is congruent modulo 2
n
, where n is 7.
NOTES
This function is implemented only for the IEEE_float floating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The remquo() function returns the same values as the remainder() function.
When the value of x or y is NaN, the remquo() function returns NaN.
When the value of x is positive or negative infinity, or the value of y is positive or negative zero
and the other argument is non-Nan, the remquo() function returns NaN and sets errno to
[EDOM].
ERRORS
If any of the following conditions occurs, the remquo() function sets errno to the corresponding
value:
[EDOM] The value of the x parameter is positive or negative infinity, or the value of the y
parameter is positive or negative zero and the other argument is non-Nan.
RELATED INFORMATION
Functions: fabs(3), fmod(3), remainder(3), remquof(3), remquol(3).
Files: math(4).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
5−120 Hewlett-Packard Company 527192-018