VMS Help
CPML, remainder()
*Conan The Librarian
|
Interface
F_TYPE remainder (F_TYPE x, F_TYPE y)
remainder() returns the remainder r = x-n*y, where n = rint(x/y).
Additionally, if |n-x/y| = 1/2, then n is even. Consequently, the
remainder is computed exactly, and |r| is less than or equal to
|y|/2. The drem() and remainder() functions are aliases of each
other.
Entry-Point Names
Generic Compaq
Function Data Type Tru64 UNIX
Name Required OpenVMS Alpha Alpha
remainder S_FLOAT math$rem_s remainderf
T_FLOAT math$rem_t remainder
X_FLOAT math$rem_x remainderl
F_FLOAT math$rem_f
G_FLOAT math$rem_g
Exceptional Argument Routine Behavior
x = infinity Invalid argument
Note that rem(x,0) has value 0 and is not an exceptional case.