Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (n - r) remquof(3)
NAME
remquof - Computes the remainder of a division operation with quotient for float values
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
float remquof(
float x,
float y
int *quo);
PARAMETERS
x Is a float number that is the numerator of the division.
y Is a float number that is the denominator of the division.
quo Is the quotient value of the division.
DESCRIPTION
The remquof() function is a float version of the remquo() function; it takes float arguments and
returns a float result.
The remquof() function computes the same remainder as the remainderf() function. In the
object pointed to by quo, the remquof() 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 remquof() function returns the same values as the remainderf() function.
When the value of x or y is NaN, the remquof() 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 remquof() function returns NaN and sets errno to
[EDOM].
ERRORS
If any of the following conditions occurs, the remquof() function sets errno to the correspond-
ing 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), remquo(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.
527192-018 Hewlett-Packard Company 5−121