Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The result of arithmetic operations on quantities shall be as if all values were converted to system quantities before the operations is performed. For most units, it make no difference. But for temperature in Celsius, it as more complex consequences (1°C + 2°C = 276.15 °C). While the above seems counter-intuitive, it is essential for preserving arithmetic laws like associativity and commutativity.
The more intuitive result (1°C + 2°C = 3°C) requires that one of the operands is treated as a temperature increment instead than a temperature measurement. Such distinction is out of scope of the issue, since it would require a change in Unit API.