---
title: "init(_:rounding:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/simd16/init(_:rounding:)"
---

# init(_:rounding:)

Creates a new vector from the given vector, rounding the given vector’s of elements using the specified rounding rule.

## Declaration

```swift
init<Other>(_ other: SIMD16<Other>, rounding rule: FloatingPointRoundingRule = .towardZero) where Other : BinaryFloatingPoint, Other : SIMDScalar
```

## Parameters

- `other`: The vector to convert.
- `rule`: The round rule to use when converting elements of other. The default is .towardZero.
