printf icon indicating copy to clipboard operation
printf copied to clipboard

More cases of "%g" not falling back to decimal mode

Open eyalroz opened this issue 4 years ago • 0 comments

If we printf_("%#.1g", -40661.5), we currently get -40662, but should be getting -4.e+04 : 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.

eyalroz avatar Aug 07 '21 17:08 eyalroz