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

Use binary prefixes by default #11

Open
murlakatamenka opened this issue Aug 18, 2019 · 1 comment
Open

Use binary prefixes by default #11

murlakatamenka opened this issue Aug 18, 2019 · 1 comment

Comments

@murlakatamenka
Copy link

It's a proposal of sane defaults.

From number_prefix crate:

Which type of prefix should I use?

There is no correct answer to this question! Current practice is to use the binary prefixes for numbers of bytes, while still using the decimal prefixes for everything else. Computers work with powers of two, rather than powers of ten, and by using the binary prefixes, you get a more accurate representation of the amount of data.

I absolutely agree with that. durt calculates sizes of files on computers after all. What's your opinion?

@cauebs
Copy link
Owner

cauebs commented Feb 2, 2020

I'm sorry for the lack of response. You may be right, I can't come up with a good argument for decimal prefixes. I'll ask around for opinions and decide soon, because I'm planning on releasing a 1.0 version.

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

2 participants