Skip to content

nearest does sometimes throw exception with custom set of available units #18

@Gummibeer

Description

@Gummibeer

I've adjusted the registered units

UnitMap::clear();
UnitMap::add(Meter::class);
UnitMap::add(CentiMeter::class);
UnitMap::add(MilliMeter::class);

But now the nearest() helper fails sometimes.

Length::nearest(1, Metric::class);

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