Skip to content

RFE when using best prefix keep as bits? #82

@ajwillo

Description

@ajwillo

Using the latest version of bitmath, im trying to convert a bit value into the best bit prefix. as seen below the output is always converted to bytes, I would like to keep the value in bits so best for this would be mebibits not mebibytes

>>> b = 130130.75
>>> m = Kib(b)
>>> m
Kib(130130.75)
>>> m.best_prefix()
MiB(15.885101318359375)

edited by tbielawa to use correct prefix units in the written form, replaced 'mega' with 'mebi' at end of description

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions