eyalroz / printf

Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems.
MIT License
402 stars 50 forks source link

printf_("% 01.1g", 9.8) yields 10, should yield 1.e01 according to gcc 14 #184

Open eyalroz opened 1 month ago

eyalroz commented 1 month ago
printf ("glibc: % 01.1g\n", 9.8);
printf_("ours:  % 01.1g\n", 9.8);

results in:

glibc:  1e+01
ours:   10

Not good.