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

# clamped(lowerBound:upperBound:)

## Declaration

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