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

# 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_half16) -> simd_half16
```
