Skip to content

Request: Measure of length #526

@mgnslndh

Description

@mgnslndh

I think it would make a good addition to Humanizer if it was possible to humanize length just like time (as with TimeSpan).

Example of how the API could look like. I guess there are more to this feature but it is a start:

var value = 1280; // millimeters
value.ToLength(precision: 1, fromUnit: LengthUnit.Millimeters, minUnit: LengthUnit.Meter, maxUnit: LengthUnit.Meter);

value would become "1.3 m"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions