fmod

Calculates the floating point remainder.

double fmod (double x, double y);

Required Header
<math.h>

Return Value

This function returns the remainder of the division of x by y.

Parameters

x

  Number

y

  Denominator

Remarks

The fmod function returns 0.0 if y is 0.0

Mathematics

See Also    ceil, fabs, floor