Interface
F_TYPE remainder (F_TYPE x, F_TYPE y)
Description
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.
IEEE Std 754 defines remainder(x,0) and remainder(infinity,y) to be
invalid operations that produce a NaN.
Exceptions
Exceptional Argument Routine Behavior
y = 0 Invalid argument
x = infinity Invalid argument