BSD 4 development
[unix-history] / usr / src / lib / libF77 / r_mod.c
double r_mod(x,y)
float *x, *y;
{
double floor(), quotient;
if( (quotient = *x / *y) >= 0)
quotient = floor(quotient);
else
quotient = -floor(-quotient);
return(*x - (*y) * quotient );
}