---
title: "trunc(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/trunc(_:)-6l2mm"
---

# trunc(_:)

Each element of the result is the closest integral value with magnitude less than or equal to that of the corresponding element of the input.

## Declaration

```swift
func trunc(_ x: simd_half3) -> simd_half3
```
