s = (float *)src;
prev_locale = setlocale(LC_NUMERIC, "C");
- snprintf(buf, sizeof(buf), "%16.16f", (double)(*s));
+ snprintf(buf, sizeof(buf), "%a", (double)(*s));
if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
len = strlen(buf);
d = malloc(len + 1);
s = (double *)src;
prev_locale = setlocale(LC_NUMERIC, "C");
- snprintf(buf, sizeof(buf), "%32.32f", (double)(*s));
+ snprintf(buf, sizeof(buf), "%a", (double)(*s));
if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
len = strlen(buf);
d = malloc(len + 1);