toaruos/libc/math/modf.c
2018-06-25 16:34:07 +09:00

8 lines
111 B
C

#include <math.h>
double modf(double x, double *iptr) {
int i = (int)x;
*iptr = (double)i;
return x - i;
}