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

Binary prefix at Digital Storage #46

Open
editicalu opened this issue Jan 12, 2017 · 4 comments · May be fixed by #90
Open

Binary prefix at Digital Storage #46

editicalu opened this issue Jan 12, 2017 · 4 comments · May be fixed by #90

Comments

@editicalu
Copy link

editicalu commented Jan 12, 2017

It would be nice to have the GiB, MiB and KiB to/from GB, MB, KB conversions

@editicalu
Copy link
Author

Extra information on the matter:
https://en.wikipedia.org/wiki/Binary_prefix

@editicalu editicalu changed the title Gibibyte, Gi Binary prefix at Digital Storage Jan 12, 2017
@gkaklas gkaklas linked a pull request Sep 4, 2017 that will close this issue
@RITFW
Copy link

RITFW commented Feb 22, 2018

Yes, that would be really nice ;)

@bberberov
Copy link

Also for data transmission!

Mb/s <---> MB/s <---> MiB/s ...

@parnmatt
Copy link

parnmatt commented Sep 8, 2019

Yes 👍

Current the conversions are wrong by ISO/IEC 80000-13 (and preceding standards)

1000 B (byte) = 1 kB (kilobyte)
1024 B (byte) = 1 kiB (kibibyte)

etc.

Right now the application is using the binary variants as with the decimal naming.

Decimal : 10^3n = 1000^n
Binary: 2^10n = 1024^n

n, dec sym, dec name, bin sym, bin name
0, B, byte, B, byte
1, kB, kilobyte, kiB, kibibyte
2, MB, megabyte, MiB, mebibyte
3, GB, gigabyte, GiB, gibibyte
4, TB, terabyte, TiB, tebibyte
... etc

Binary prefix substitutes the last letter grouping of the decimal (SI) prefix, and replace it with bi

and same for bits

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

Successfully merging a pull request may close this issue.

4 participants