4.2BSD/usr/src/usr.lib/libF77/r_mod.c

Compare this file to the similar file:
Show the results in this format:

/*
 *	"@(#)r_mod.c	1.1"
 */

double r_mod(x,y)
float *x, *y;
{
double floor(), quotient = *x / *y;
if (quotient >= 0.0)
	quotient = floor(quotient);
else
	quotient = -floor(-quotient);
return(*x - (*y) * quotient );
}