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

mb is treated as "millibytes" #46

Closed
tchajed opened this issue Mar 20, 2017 · 1 comment
Closed

mb is treated as "millibytes" #46

tchajed opened this issue Mar 20, 2017 · 1 comment

Comments

@tchajed
Copy link

tchajed commented Mar 20, 2017

Due to the uniform handling of SI prefixes, mb is unfortunately a millibyte, which is a pretty useless unit of measure:

$ insect '1 mb -> bytes'
0.001b

This was pretty confusing to me, until I realized I needed to use Mb to get the desired unit (of mebibytes = 1000000 bytes, which is close enough).

Fixing this requires some special-casing of data storage-related units.

@sharkdp
Copy link
Owner

sharkdp commented Mar 20, 2017

I'm not sure. I think I would like to keep the handling of SI prefixes consistent, even though I agree that "millibyte" is typically not a very useful unit.

But I just realized, that the standard way of writing "mega byte" is actually "MB" with a capital "B" (instead of "Mb"). Maybe we should just change byte to be "B". Then, "mB" would probably not expected to be mega byte. What do you think?

Also, I believe that #34 could help here, if the output had been:

> 1mb -> bytes

  1 milli byte -> bytes

  = 0.001b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants