difference method

TemperatureChange difference(
  1. Temperature other
)

Returns the difference between this and another Temperature.

The resulting TemperatureChange will be negative if this is smaller than the other Temperature.

Implementation

TemperatureChange difference(final Temperature other) =>
    kelvin(_kelvin - other._kelvin,
        precision: Precision.addition(kelvin(_kelvin, precision: _precision),
            kelvin(other._kelvin, precision: other._precision)));