|
|
1.1 ! root 1: double r_mod(x,y) ! 2: float *x, *y; ! 3: { ! 4: double floor(), quotient = *x / *y; ! 5: if (quotient >= 0.0) ! 6: quotient = floor(quotient); ! 7: else ! 8: quotient = -floor(-quotient); ! 9: return(*x - (*y) * quotient ); ! 10: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.