fmod

Calculates floating point remainder of x/y

double fmod (
        double x,
        double y
)

Arguments

x Floating point dividend
y Floating point divisor

Return value

The double precision floating point number remainder of x/y is returned.

Explanation

The remainder of x/y is calculated and its value is returned as a double-precision floating point number.

Notes

The sign of the return value will be the same as the sign of x. 0 is returned if y is 0.