Skip to content

printf:output doesn't match with GNU printf #7031

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

Closed
alexs-sh opened this issue Dec 30, 2024 · 0 comments · Fixed by #7034
Closed

printf:output doesn't match with GNU printf #7031

alexs-sh opened this issue Dec 30, 2024 · 0 comments · Fixed by #7034

Comments

@alexs-sh
Copy link
Contributor

alexs-sh commented Dec 30, 2024

About

The uutils output doesn't match the GNU printf output

 cargo run -- printf "%g" -0.1171875
-0.11719       
         
cargo run -- printf "%g"  -0.00001
-0.00001                    

vs

printf "%g" -0.1171875
-0.117188                  

printf "%g"  -0.00001
-1e-05                                       

This was discovered during work on #6959

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

Successfully merging a pull request may close this issue.

2 participants