Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kccdist/lib/math/fmod.c
There are 7 other files named fmod.c in the archive. Click here to see a list.
/*
 *	FMOD.C - floating-point modulus for math library
 *
 *	This code conforms with the description of the frexp function
 *	as defined in Harbison and Steele's "C: A Reference Manual",
 *	section 11.3.12
 */

double fmod(x, y)
double x, y;
{
	extern double modf();
	double ipart;

	modf((x / y), &ipart);	/* integer part in ipart, forget remainder */
	return x - (ipart * y);
}