Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

humanize.ftoa(), numbers with 0s before the decimal get truncated when rounding to 0 digits #633

Open
poprhythm opened this issue Feb 15, 2023 · 2 comments

Comments

@poprhythm
Copy link

For example:

humanize.ftoa(20.5,0) results in "2", expected "20"
humanize.ftoa(100.5,0) results in "1", expected "100"

@rs7q5
Copy link
Contributor

rs7q5 commented Feb 17, 2023

cc @drudge

@dinosaursrarr
Copy link
Contributor

I think this is fixed. I had a go at adding your test cases and they passed first time. Looks like it was fixed upstream.

dustin/go-humanize#106

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

No branches or pull requests

3 participants