---
title: "init(bitPattern:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/float16/init(bitpattern:)"
---

# init(bitPattern:)

Creates a new value with the given bit pattern.

## Declaration

```swift
init(bitPattern: UInt16)
```

## Parameters

- `bitPattern`: The integer encoding of a Float16 instance.

## Discussion

Discussion The value passed as bitPattern is interpreted in the binary interchange format defined by the IEEE 754 specification.
