Skip to content

Unitconv regression #3589

@grande1900

Description

@grande1900

Describe the bug

Commit 4e328bf has a regression that went unnoticed where returned values for unit conversions involving hammer units are larger than expected due to using a conversion of 1u = 1in instead of 1u = 0.75in.

How to reproduce the bug

assert( toUnit("mph",100) * 4/3 == 100 / 17.6 )
On versions before 4e328bf, this assert would not fail.
On versions after 4e328bf, this assert would fail.

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