Open rohit04saluja opened 3 years ago
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
@tbielawa any thoughts about it?
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