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

# 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_half32) -> simd_half32
```
