added long/short conversions. DLW
[unix-history] / usr / src / usr.bin / f77 / libF77 / r_mod.c
/*
* "@(#)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 );
}