qudtlib / qudtlib-java

Unit Conversion and related functionality for over 1700 units, based on the awesome QUDT ontology.
Apache License 2.0
14 stars 4 forks source link

Fix/temperaturedifference edgecase, add description and Unit.isDefinedAsOtherUnit() #96

Closed fkleedorfer closed 8 months ago

fkleedorfer commented 8 months ago

Fixes the edgecase when converting between °C, °F and °K for quantityKind qk:TemperatureDifference. In these conversions, the offset must be ignored.

Adds a description field to Unit, QuantityKind and PhysicalConstant

Adds Unit.isDefinedAsOtherUnit() so that we can differentiate between, e.g. unit:L and unit:DeciM3