#include <math.h> double
fmod (double x double y); float
fmodf (float x float y);
DESCRIPTION
The
fmod ();
and the
fmodf ();
functions compute the floating-point remainder of
Fa x Ns / Fa y .
RETURN VALUES
The
fmod ();
and the
fmodf ();
functions return the value
Fa x - Em i * Fa y ,
for some integer
i
such that, if
Fa y
is non-zero, the result has the same sign as
Fa x
and magnitude less than the magnitude of
Fa y .
If
Fa y
is zero, whether a domain error occurs or the
fmod ();
and the
fmodf ();
function returns zero is implementation-defined.