FMOD(3)

NAME
1.24 `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.

SEE ALSO
fmod is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.