<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/trunc(_:)-4p8mg",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd5truncys5SIMD3VySdGAEF"
  },
  "title" : "trunc(_:)"
}
-->

# trunc(_:)

Returns each element in a vector rounded toward zero to the nearest integer.

```
func trunc(_ x: SIMD3<Double>) -> SIMD3<Double>
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)