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
Howdy!
Right now, most strings use abbreviations. However, "Byte" is still written out all the way. This can cause consistency issues. For example:
import bitmath with bitmath.format(fmt_str="{value:.2f} {unit}"): formatted_size = bitmath.Byte(500).best_prefix() print(str(formatted_size)) formatted_size = bitmath.Byte(2**25).best_prefix() print(str(formatted_size)) formatted_size = bitmath.Byte(2**37).best_prefix() print(str(formatted_size))
results in:
500.00 Byte 32.00 MiB 128.00 GiB
I can set format_plural to make Byte pluralized, but this also pluralizes everything else:
Byte
500.00 Bytes 32.00 MiBs 128.00 GiBs
Would it be possible to use B instead of Byte? I think this would make everything match up. It should be ok to use B per https://en.wikipedia.org/wiki/IEEE_1541-2002.
B
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Howdy!
Right now, most strings use abbreviations. However, "Byte" is still written out all the way. This can cause consistency issues. For example:
results in:
I can set format_plural to make
Byte
pluralized, but this also pluralizes everything else:Would it be possible to use
B
instead ofByte
? I think this would make everything match up. It should be ok to useB
per https://en.wikipedia.org/wiki/IEEE_1541-2002.The text was updated successfully, but these errors were encountered: