Interface F_TYPE fmod (F_TYPE x, F_TYPE y)
1 – Description
fmod() computes the floating-point remainder of x modulo y. It returns the remainder r = x-n*y, where n = trunc(x/y). The remainder is computed exactly. The result has the same sign as x and a magnitude less than the magnitude of y. Entry-Point Names Generic Function Data Type OpenVMS Tru64 UNIX Name Required fmod S_FLOAT math$mod_s fmodf T_FLOAT math$mod_t fmod X_FLOAT math$mod_x fmodl F_FLOAT math$mod_f G_FLOAT math$mod_g
2 – Exceptions
Exceptional Argument Routine Behavior x = infinity Invalid argument Note that fmod(x,0) has value 0 and is not an exceptional case.