---
title: "clamped(lowerBound:upperBound:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/simd2/clamped(lowerbound:upperbound:)-8tjus"
---

# clamped(lowerBound:upperBound:)

## Declaration

```swift
func clamped(lowerBound: Self, upperBound: Self) -> Self
```
