mirror of https://github.com/flysand7/ciabatta.git
19 lines
224 B
C
19 lines
224 B
C
|
|
||
|
double fmod(double x, double y) {
|
||
|
int n = 0;
|
||
|
while(y < x*n) {
|
||
|
++n;
|
||
|
}
|
||
|
return y - n*x;
|
||
|
}
|
||
|
|
||
|
float fmodf(float x, float y) {
|
||
|
int n = 0;
|
||
|
while(y < x*n) {
|
||
|
++n;
|
||
|
}
|
||
|
return y - n*x;
|
||
|
}
|
||
|
|
||
|
|