mirror of
https://frontier.innolan.net/github/amiga-ixemul.git
synced 2026-09-12 09:01:37 +00:00
13 lines
185 B
C
13 lines
185 B
C
//used from libnix and modify
|
|
|
|
//#include <math.h>
|
|
|
|
double fmod(double x,double y)
|
|
{
|
|
double a= x / y;
|
|
if(a >= 0)
|
|
return x - y*floor(a);
|
|
else
|
|
return x - y*ceil(a);
|
|
}
|