---
title: "init(truncatingIfNeeded:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/simd3/init(truncatingifneeded:)"
---

# init(truncatingIfNeeded:)

Creates a new vector from the given vector, truncating the bit patterns of the given vector’s elements if necessary.

## Declaration

```swift
init<Other>(truncatingIfNeeded other: SIMD3<Other>) where Other : FixedWidthInteger, Other : SIMDScalar
```

## Parameters

- `other`: The vector to convert.
