---
title: "clamp(lowerBound:upperBound:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/simd3/clamp(lowerbound:upperbound:)-9has1"
---

# clamp(lowerBound:upperBound:)

## Declaration

```swift
mutating func clamp(lowerBound: Self, upperBound: Self)
```
