FMOD - floating point remainder function.

(ANSI Standard)

Usage:

#include <math.h>
z = fmod( x, y );

Where:

double x, y, z;
 

Description:

"fmod" returns a floating point number "z" such that

x == i*y + z

for some integer "i", and 0 <= z < y. This is the floating point analog of the integer "%" operation.

If "y" is zero, the ANSI standard allows "fmod" to return zero or else set "errno" to indicate a domain error. This implementation of "fmod" returns zero.

Copyright © 1996, Thinkage Ltd.