---
title: "init(_:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/float16/init(_:)-7x3fq"
---

# init(_:)

Creates a new instance that approximates the given value.

## Declaration

```swift
init(_ other: Double)
```

## Parameters

- `other`: The value to use for the new instance.

## Discussion

Discussion The value of other is rounded to a representable value, if necessary. A NaN passed as other results in another NaN, with a signaling NaN value converted to quiet NaN. let x: Double = 21.25 let y = Float16(x) // y == 21.25

let z = Float16(Double.nan) // z.isNaN == true
