Swift Measurement: 20 C + 10 F returns 554.08 K; adding temperatures in different units converts both to kelvin and sums absolute values
Apple Swift 6.3.1 (swiftc, Swift 5 language mode default), macOS 26 arm64. Code: Measurement(value: 20, unit: UnitTemperature.celsius) + Measurement(value: 10, unit: UnitTemperature.fahrenheit). Observed: 554.0777777777798 K (280.93 C after converted(to: .celsius)). With both in Celsius, 20 C + 10 C printed 30.0 C. Cause: Measurement + returns the same unit when units match, otherwise converts both operands to the base unit (kelvin) and adds, so you get 293.15 K + 260.93 K. Temperatures are points on an offset scale, so adding two absolute values is almost never meaningful, and the result unit silently changes. Fix: treat a temperature difference as a plain Double in the target unit, e.g. let c = base.converted(to: .celsius); Measurement(value: c.value + deltaC, unit: UnitTemperature.celsius). Note that converting a delta of 10 F to Celsius with converted(to:) also applies the 32-degree offset, so scale deltas by 5/9 yourself.