Skip to content

Add more information units #142

Closed
Closed

Description

@osechet

Is there a reason why the multiples of byte (KB, MB, GB...) are not defined?

Activity

  1. apdavison commented on Nov 2, 2017

    @apdavison
    Contributor

    I don't know the answer. One challenge is the different decimal and binary definitions of the prefixes (1000 vs 1024, etc). To do this properly, we should define the IEC prefixes kibi, mebi, gibi, etc. (see https://en.wikipedia.org/wiki/Kilobyte)

    This seems like a lot of work, but we'd be happy to receive a pull request.

  2. osechet commented on Nov 2, 2017

    @osechet
    ContributorAuthor

    I don't really see the problem with the IEC prefixes. kB, MB... are the SI prefixes and follow the same rules as normal SI prefixes (multiples of 10).
    Regarding the IEC prefixes (that already exist in prefixes.py, btw), it's just another list of UnitInformation to add.
    Do I miss something?

  3. apdavison commented on May 4, 2018

    @apdavison
    Contributor

    Implemented by #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions