---
title: "trunc(_:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/trunc(_:)-1npgt"
---

# trunc(_:)

Returns a single-precision array containing each element in the supplied vector truncated to a fraction.

## Declaration

```swift
static func trunc<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float
```

## See Also

### Single-Vector Fractional Part Extraction

- [trunc(_:)](accelerate/vdsp/trunc(_:)-80rfo.md)
- [trunc(_:result:)](accelerate/vdsp/trunc(_:result:)-4t63c.md)
- [trunc(_:result:)](accelerate/vdsp/trunc(_:result:)-fabn.md)
