We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The best_prefix of a bit unit comes as MegaByte. b -> M
best_prefix
How to REPRODUCE the issue:
>>> import bitmath >>> b = bitmath.Bit(30950093.15655963) >>> b Bit(30950093.15655963) >>> b.best_prefix() MiB(3.6895386167239703) >>>
How REPRODUCIBLE (every time? intermittently? only in certain environments?): Happens every time.
What you EXPECTED to happen: The expectation was the best_prefix() should have returned Mib as the initial unit is in Bit.
best_prefix()
Mib
Bit
>>> b.to_Mib() Mib(29.516308933791763) >>>
What ACTUALLY happened: best_prefix() returned MiB
MiB
>>> b.best_prefix() MiB(3.6895386167239703) >>>
VERSION of bitmath effected (git hashes are OK). Did you install from RPM, PyPi, source?
Your OPERATING SYSTEM and the affected PYTHON VERSION:
Python: 3.7.3 OS: Linux 5.4.79-v7+ armv7l GNU/Linux
The text was updated successfully, but these errors were encountered:
@tbielawa any thoughts about it?
Sorry, something went wrong.
No branches or pull requests
The
best_prefix
of a bit unit comes as MegaByte. b -> MHow to REPRODUCE the issue:
How REPRODUCIBLE (every time? intermittently? only in certain environments?):
Happens every time.
What you EXPECTED to happen:
The expectation was the
best_prefix()
should have returnedMib
as the initial unit is inBit
.What ACTUALLY happened:
best_prefix()
returnedMiB
VERSION of bitmath effected (git hashes are OK). Did you install from RPM, PyPi, source?
Your OPERATING SYSTEM and the affected PYTHON VERSION:
Python: 3.7.3
OS: Linux 5.4.79-v7+ armv7l GNU/Linux
The text was updated successfully, but these errors were encountered: