Skip to content

"%g" makes incorrect decisions regarding switch from decimal to exponential #28

@eyalroz

Description

@eyalroz

If we printf_("%#.1g", -40661.5), we currently get -40662, but should be getting -4.e+04 because of the low precision: With "%g", the "precision" value means the number of significant digits to show; and if the number isn't fully captured by those, we are supposed to use exponential notation.

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