mpaland / printf

Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
MIT License
2.47k stars 452 forks source link

Printing +/-0 with "%g" doesn't fall back to decimal mode #121

Open eyalroz opened 2 years ago

eyalroz commented 2 years ago

If we printf_("%g", 0.), we get "0e+00"; we should be getting just "0". See also #75, #55, #48 about "%g" issues.