* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / i386fp / modf.c
blob32325432469e76be29adff9489cbfa40fbe2ae54
1 #include <math.h>
3 /* Slooow version. */
5 double modf(x, pint)
6 double x;
7 double *pint;
9 if (x >= 0)
10 *pint = floor(x);
11 else
12 *pint = ceil(x);
13 return x - *pint;