Closed Enchufa2 closed 1 year ago
You're correct and I understand why this must seem annoying. Unfortunately, it's unavoidable because the degree Fahrenheit is defined as a degree Rankin offset at 459.67 and the degree Rankin is defined as a degree Kelvin divided by 1.8. I'm afraid the double precision value associated with the degree Fahrenheit isn't able to be completely recovered when going from Fahrenheit to Kelvin and back to Fahrenheit.
For what it's worth, the use-case for the UDUNITS-2 package was to convert any incoming unit into something that could be manipulated under the assumption that the user would specify the final output unit.
In the following example, only the symbol for degree Celsius is resolved:
Output:
Not sure whether this could be an issue in the XML definition or in the library. But I would expect both to be resolved.
More info: