Go to the first, previous, next, last section, table of contents.
#include <math.h> double fmod(double x, double y);
This function computes the remainder of x/y
, which is
x - iy for some integer i such that
iy < x < (i+1)y.
The remainder of x/y. If x is Inf
or
NaN
, the return value is NaN
and errno
is set to
EDOM
. If y is zero, the return value is zero (but
errno
is not changed).
ANSI, POSIX
Go to the first, previous, next, last section, table of contents.