Skip to content

Human readable value in contrained range #129

@vallsv

Description

@vallsv

Hi,

Thanks a lot for that library. Looks very useful for now.

I would like to know the best way to pick a "best" unit for human readable value.

I have to deal with metrics of about mm/um/nm` so in my case i can check easially what the best unit i can pick.

But for the general use case, what would be the best approach to render a value between 0.1 < < 999, by picking the appropriate prefix p/n/u/m//k/M/G to match the constraint? Looking at the documentation i really have no idea.

Thanks a lot.

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