libm.info: fmod

Go forward to frexp
Go backward to floor
Go up to Math
Go to the top op libm

`fmod', `fmodf'--floating-point remainder (modulo)

*Synopsis*
     #include <math.h>
     double fmod(double X, double Y)
     float fmodf(float X, float Y)
   *Description*
The `fmod' and `fmodf' functions compute the floating-point remainder
of X/Y (X modulo Y).
*Returns*
The `fmod' function returns the value X-I*Y, for the largest integer I
such that, if Y is nonzero, the result has the same sign as X and
magnitude less than the magnitude of Y.
   `fmod(X,0)' returns NaN, and sets `errno' to `EDOM'.
   You can modify error treatment for these functions using `matherr'.
*Portability*
`fmod' is ANSI C. `fmodf' is an extension.