-(_:_:)

Subtract two measurements of the same Dimension.

iOS
10.0+
macOS
10.12+
tvOS
10.0+
watchOS
3.0+
static func - (lhs: Measurement<UnitType>, rhs: Measurement<UnitType>) -> Measurement<UnitType>

Returns

The result of adding the two measurements.

If the unit of the lhs and rhs are ==, then this returns the result of subtracting the value of each Measurement. If they are not equal, then this will convert both to the base unit of the Dimension and return the result as a Measurement of that base unit.