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

# ==(_:_:)

Compare two measurements of the same Dimension.

## Declaration

```swift
static func == <LeftHandSideType, RightHandSideType>(lhs: Measurement<LeftHandSideType>, rhs: Measurement<RightHandSideType>) -> Bool where LeftHandSideType : Unit, RightHandSideType : Unit
```

## Return Value

Return Value true if the measurements are equal.

## Discussion

Discussion If lhs.unit == rhs.unit, returns lhs.value == rhs.value. Otherwise, converts rhs to the same unit as lhs and then compares the resulting values.
