Problem: calculations with numbers with units: error with type conversion

Have you seen -

When you come to do maths with that later, that also involve some other unit, “ordinary °C” in this case, openHAB is going to treat the °C elements as absolute temps and do conversions.

EDIT- afterthought; rules are loosely typed. You might have declared k as Number, but it holds a quantity type now, with units.

It’s the 2°C + 1°C = 3°C conundrum.
We mean 2°C as an absolute measured temperature, and 1°C as an interval or increment, but there’s no way to tell the difference.
That doesn’t matter while everything is in same units.
The nature of your calculation is that it can’t all be in same units, one part is “1/°C” units.

might be a complaint about °C being difficult to handle because of the offset or point of origin that make temperatures different from other quantity types.

Will this calculation work if all done in Kelvin, willit think that is linear? Conversions are easy.