---
title: "UIFloatRangeIsEqualToRange(_:_:)"
framework: uikit
role: symbol
role_heading: Function
path: "uikit/uifloatrangeisequaltorange(_:_:)"
---

# UIFloatRangeIsEqualToRange(_:_:)

Returns a Boolean indicating whether two float ranges are equivalent.

## Declaration

```swift
func UIFloatRangeIsEqualToRange(_ range: UIFloatRange, _ otherRange: UIFloatRange) -> Bool
```

## Parameters

- `range`: The first range to compare.
- `otherRange`: The second range to compare.

## Discussion

Discussion Two ranges are considered equal when their minimum values are the same and their maximum values are the same. In practice, the minimum and maximum values do not have to be exactly equal, but the difference between each pair of values must be less than FLT_EPSILON.

## See Also

### Testing the range values

- [isInfinite](uikit/uifloatrange/isinfinite.md)
