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