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

%g should omit trailing zeros #55

Open
ledvinap opened this issue Apr 23, 2019 · 1 comment
Open

%g should omit trailing zeros #55

ledvinap opened this issue Apr 23, 2019 · 1 comment

Comments

@ledvinap
Copy link

printf("%g", 0.0001) : 
expected:  "0.0001"
got: "0.000100000" 

printf("%g", 0.00001) : 
expected: "1e-05"
got : "1.000000e-05"
@eyalroz
Copy link

eyalroz commented Aug 3, 2021

Fixed on my fork by commit 84e66ae; see also #75 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants