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

[Proposal] 'Natural' rounding to improve big numbers readability in dashboard #350

Open
electroape opened this issue May 25, 2021 · 0 comments

Comments

@electroape
Copy link

Rounds the number to improve readability rounding off insignificant part with the rounding error of no more than 0.5%.
Examples :
654654 becomes 655000, rounding error 0.05%
12345 becomes 12300, rounding error 0.36%
2345 becomes 2350, rounding error 0.2%
51.8 becomes 52, rounding error 0.39%
Visual example in dashboard (numbers are randomized) :
https://imgur.com/WznmuTR
Code : electroape@3e5945c

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

1 participant