83
85
@return number of written characters (excluding terminating '\0')
86
size_t my_fcvt(double x, int precision, char *to, bool *error)
88
size_t my_fcvt(double x, int precision, char *to, my_bool *error)
89
91
char *res, *src, *end, *dst= to;
90
92
char buf[DTOA_BUFF_SIZE];
93
95
res= dtoa(x, 5, precision, &decpt, &sign, &end, buf, sizeof(buf));