3BSD/usr/src/libF77/d_mod.c

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


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