Skip to content

printf("%# 01.1g", 9.8) yields decimal rather than exponential formatting #156

Open
@eyalroz

Description

@eyalroz

printf("%# 01.1g", 9.8) should yield 1.e01, but yields 10.; this is likely due to a mis-evaluation of how many characters the exponential-format takes up, resulting in a mistaken decision to use decimal mode.

See discussion of this issue on StackOverflow.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingresolved-on-developA changeset fixing this issue has been commiutted to the development branch

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions