We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tried doing abbreviate(13992, 1) and it returns "14k" where it should be "13.9k"
The text was updated successfully, but these errors were encountered:
I think this is expected functionality! See some of the tests. Anything larger than 13950 gets rounded up:
> abbreviate(13949, 1) '13.9k' > abbreviate(13950, 1) '14k'
Would accept a PR to disable rounding, if you're interested! Alternatively, if you want 2 decimal places you could do this:
> abbreviate(13992, 2) '13.99k'
Sorry, something went wrong.
No branches or pull requests
tried doing abbreviate(13992, 1) and it returns "14k" where it should be "13.9k"
The text was updated successfully, but these errors were encountered: