---
title: "trunc(_:result:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/trunc(_:result:)-4t63c"
---

# trunc(_:result:)

Calculates each element in the supplied double-precision vector truncated to a fraction.

## Declaration

```swift
static func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
```

## See Also

### Single-Vector Fractional Part Extraction

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