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

MSF: Support min significant figures instead of decimal places? #15

Open
naggie opened this issue Aug 14, 2014 · 0 comments
Open

MSF: Support min significant figures instead of decimal places? #15

naggie opened this issue Aug 14, 2014 · 0 comments

Comments

@naggie
Copy link

naggie commented Aug 14, 2014

Imagine I have 2 disks, one 1TB and one 4TB, both 81% full.

With 0DP, the first will be represented with 5 characters, with decent precision :810GB
but the 4TB HDD used space would be represented with 3: 3TB which is not accurate enough (only 4 possible levels). I could add 1 or 2 decimal places, but then that would make the former unnecessarily long: 810.00GB. This isn't good for typography and space usage.

I think the solution would be min-significant-figures (MSF): the former would get 810GB and the latter, 43.24GB with a value of 2.

Do you agree?

Thanks for the library.

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