Skip to content

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

@alexs-sh

Description

@alexs-sh

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions