remainder(3M)remainder(3M)NAMEremainder(), remainderf(), remainderl(), remainderw(), remainderq(),
drem(), dremf(), dreml(), dremw(), dremq() - remainder functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function returns the floating-point remainder r = x − ny when y is
a nonzero number. The value n is the integral value nearest the exact
value x/y; when ⎪ n − x/y ⎪ = ½, the value n is chosen to be even.
The function is independent of the rounding mode.
Integrity Server Only
is equivalent to It is provided in HP-UX to facilitate importing code
from other platforms.
and are versions of and they take arguments and returns a result.
and are versions of and they take arguments and returns a result.
and are version of and they take arguments and returns an result.
and are equivalent to and on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with
the and options.
To use (for Integrity servers) or compile also with the option.
Make sure your program includes Link in the math library by specifying
on the compiler or linker command line.
RETURN VALUE
If y x returns x.
If x y is a nonzero number, returns x.
If x or y is NaN, returns NaN.
If y is zero, returns NaN and raises the invalid exception.
If x returns NaN and raises the invalid exception.
ERRORS
If y is zero or x is infinite, sets to
Integrity Server Only
HP-UX functions on Integrity servers do not set by default. For set‐
ting, compile with the option and the (default) option.
SEE ALSOfmod(3M), fabs(3M), remquo(3M), math(5).
STANDARDS CONFORMANCE
: SVID3, XPG4.2, IEEE-754, ISO/IEC C99 (including Annex F, "IEC 60559
floating-point arithmetic")
: ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arith‐
metic")
remainder(3M)