Skip to content

Infinite loop when trying to convert N/kg to SI #40

@xeger

Description

@xeger

This should yield a quantity with units m/s^2, or if you consider N to be "proper" SI, it should do nothing. Instead, it seems to throw Quantify into an infinite loop.

Repro:

(1.N/1.kg).to_si

Cancelling the base units also doesn't seem to be able to "separate" the component units of the Newton:

(1.N/1.kg).cancel_base_units! :kg
=> 1 N/kg

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