Skip to content

Doesn't handle negative numbers #10

@anilkumarmyla

Description

@anilkumarmyla

I like this library but it doesn't seem to work well for negative numbers

>>> convert_units(Decimal('-149250113536'))
(Decimal('-149250113536'), 'B')
>>> convert_units(Decimal('149250113536'))
(Decimal('139'), 'GiB')

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