Skip to content

formatting 'B' from large 'MB' is wrong #11

@aphor

Description

@aphor
'{0:a}'.format(DataSize('14796MB'))
>>> '13.779849GiB'
'{0:B}'.format(DataSize('14796MB'))
>>> '14796000000EB'

should look more like

'{0:B}'.format(DataSize('14796MB'))
>>> '14796000000B'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions