2 #define PSH(X) (*(st++)=(X))
7 #define fabs(x) ((x)<0 ? (-x) : (x))
9 /* FIXME: This file contains roundoff error */
11 char * ftoa(char *st, float f, int flags)
19 sprintf(st, "%d+e4", i);
24 sprintf(st+strlen(st), "%d", (int)frac);
37 if (flags & PLUS) PSH('+');
38 if (flags & SPACE) PSH(' ');
53 while ((exp > 0) && (exp < 7)) {