Skip to content

printf_("%.1e", 9.96) prints "10.0e+00", should print "1.0e+01" #120

Description

@eyalroz

(migrated from eyalroz#24):

When we

printf_("%.3e", 9.96)

the rounding to 1 decimal precision digit makes the value 10.0, which should print as 1.0e+01 in exponent format. Unfortunately, library do not make sure and "re-normalize" the result of rounding, and produces 10.0e+00 instead.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions