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

bytes package is not ISO/IEC 80000 and IEEE 1541 complient #28

Closed
Kallinteris-Andreas opened this issue Dec 18, 2018 · 1 comment · Fixed by #45
Closed

bytes package is not ISO/IEC 80000 and IEEE 1541 complient #28

Kallinteris-Andreas opened this issue Dec 18, 2018 · 1 comment · Fixed by #45

Comments

@Kallinteris-Andreas
Copy link

Kallinteris-Andreas commented Dec 18, 2018

according to Clause 4 of the ISO/IEC 80000 standard and IEEE 1541
among other things, the SI prefixes strictly refer to powers of ten and should not be used to indicate binary multiples

instead the Ki,Mi,Gi,.. prefixes should be used to indicate power of 2s

more on: https://en.wikipedia.org/wiki/Binary_prefix#IEC_prefixes

proposed solution:
change the current units from Si prefixes to Binary prefixes (KB->KiB,MB->MiB,GB->GiB,..)
and then (optionally) add support for Si units

@vishr
Copy link
Member

vishr commented Feb 2, 2019

@Kallinteris-Andreas I am open for a PR

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.

2 participants