Skip to content

Conversation

@kjgorman
Copy link

👋Hi @ericlagergren — we've noticed a small edge case in the f format flag. It looks like this will be also fixed in #144 but I figured I would report it anyway and propose a small change for the existing version if that one is still WIP.


Previously we would take only precision without also considering the
exponent, meaning you would have scenarios like 200 being formatted with
%.2f as just 200 as x.exp would be 2, and x.Precision() would be 1.

Previously we would take only precision without also considering the
exponent, meaning you would have scenarios like 200 being formatted with
`%.2f` as just `200` as `x.exp` would be 2, and `x.Precision()` would be 1.
@ericlagergren
Copy link
Owner

hi, just letting you know I did see this issue.

I really appreciate the PR and I plan on merging it in.

@ericlagergren ericlagergren merged commit 88212e6 into ericlagergren:master Dec 6, 2019
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.

2 participants