---
title: "init(sign:exponentBitPattern:significandBitPattern:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/float/init(sign:exponentbitpattern:significandbitpattern:)"
---

# init(sign:exponentBitPattern:significandBitPattern:)

Creates a new instance from the specified sign and bit patterns.

## Declaration

```swift
init(sign: FloatingPointSign, exponentBitPattern: UInt, significandBitPattern: UInt32)
```

## Parameters

- `sign`: The sign of the new value.
- `exponentBitPattern`: The bit pattern to use for the exponent field of the new value.
- `significandBitPattern`: The bit pattern to use for the significand field of the new value.

## Discussion

Discussion The values passed as exponentBitPattern and significandBitPattern are interpreted in the binary interchange format defined by the IEEE 754 specification.

## See Also

### Working with Binary Representation

- [bitPattern](swift/float/bitpattern.md)
- [significandBitPattern](swift/float/significandbitpattern.md)
- [significandWidth](swift/float/significandwidth.md)
- [exponentBitPattern](swift/float/exponentbitpattern.md)
- [significandBitCount](swift/float/significandbitcount.md)
- [exponentBitCount](swift/float/exponentbitcount.md)
- [radix](swift/float/radix.md)
- [init(bitPattern:)](swift/float/init(bitpattern:).md)
- [init(nan:signaling:)](swift/float/init(nan:signaling:).md)
- [Float.Exponent](swift/float/exponent-swift.typealias.md)
- [Float.RawSignificand](swift/float/rawsignificand.md)
