---
title: "-(_:_:)"
framework: foundation
role: symbol
role_heading: Operator
path: "foundation/measurement/-(_:_:)-1a47h"
---

# -(_:_:)

Subtract two measurements of the same Dimension.

## Declaration

```swift
static func - (lhs: Measurement<UnitType>, rhs: Measurement<UnitType>) -> Measurement<UnitType>
```

## Return Value

Return Value The result of adding the two measurements.

## Discussion

Discussion 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.

## See Also

### Operating on a Measurement

- [*(_:_:)](foundation/measurement/*(_:_:)-1d26c.md)
- [*(_:_:)](foundation/measurement/*(_:_:)-5tv8a.md)
- [+(_:_:)](foundation/measurement/+(_:_:)-9lejn.md)
- [+(_:_:)](foundation/measurement/+(_:_:)-4fsbl.md)
- [-(_:_:)](foundation/measurement/-(_:_:)-2nnoy.md)
- [/(_:_:)](foundation/measurement/_(_:_:)-98s40.md)
- [/(_:_:)](foundation/measurement/_(_:_:)-71kwk.md)
