Closed ttrikalin closed 2 years ago
This is no bug, but just reflects the design decisions made in udunits2. As a general conversion framework, it allows you to apply any kind of (valid) conversion. For example, you could define a conversion of grams of coal into energy released when it burns. There definitely is a conversion factor (which is not the same as dimensional analysis) to convert from units to their reciprocals, and udunits2 chose to support that.
We rely on udunits2, and so we are not willing to change this philosophy. If you are not happy with this behaviour, I suggest to bring this upstream.
There appears to be a bug when dealing with a unit and its inverse.