Declaration:
float fmod(float x, float y);
Description
The fmod function calculates the remainder of dividing x by y.
Returned function
The fmod function returns the value equal to x - i * y, for integer i, and the absolute value of x - i * y is less than the absolute value of y. The returned value has the same sign as x. If y is equal to 0, then 0 will be returned.
|