Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eyalroz opened this issue Jul 26, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jul 26, 2024

printf ("glibc: % 01.1g\n", 9.8);
printf_("ours:  % 01.1g\n", 9.8);

results in:

glibc:  1e+01
ours:   10

Not good.

@eyalroz eyalroz added the bug Something isn't working label Jul 26, 2024
@eyalroz eyalroz self-assigned this Jul 26, 2024
@eyalroz eyalroz changed the title "% .3g" failure: " 1000" instead of " 1e+03" printf_("% 01.1g", 9.8) yields 10, should yield 1.e01 according to ogcc Sep 13, 2024
@eyalroz eyalroz changed the title printf_("% 01.1g", 9.8) yields 10, should yield 1.e01 according to ogcc printf_("% 01.1g", 9.8) yields 10, should yield 1.e01 according to gcc 14 Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant