Skip to content

Conversation

@thatfool
Copy link

This fixes the following formatting bugs:

  • %e 0 -> NaN.000000e-2147483648
  • %g 0 -> panic (attempt to subtract with overflow)
  • %4g 1 -> 001. (instead of 0001)
  • %.2g, 1 -> 1. (instead of 1)

Some of these were previously mentioned in #18.

For 0, log10() returns -inf, which is inconvenient.
When trimming trailing zeroes removes all zeroes after the decimal
point, remove the decimal point too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant