Skip to content

UnitConverter.ConvertByAbbreviation method throws AmbitiousUnitParseException when trying to convert "psi" #484

Closed
@YektaMirkan

Description

@YektaMirkan

I use ConvertByAbbreviation to convert values. But there is a problem with "psi". It seems like both PoundForcePerSquareInch and Psi have the same abbreviation. So it throws AmbitiousUnitParseException when trying to convert from or to "psi" with this exception message: "Cannot parse 'psi' since it could be either of these: 32, 33 ".

Example:
UnitConverter.ConvertByAbbreviation(1, "Pressure", "bar", "psi");

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