Manpage of FMOD
FMOD
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.15 `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
libm
library.
The full documentation for
libm
is maintained as a Texinfo manual. If
info
and
libm
are properly installed at your site, the command
-
info libm
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:17 GMT, May 16, 2005
www.fiveanddime.net