---
title: "init(exactly:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/float/init(exactly:)-8esr8"
---

# init(exactly:)

Creates a new instance from the given value, if it can be represented exactly.

## Declaration

```swift
init?<Source>(exactly value: Source) where Source : BinaryFloatingPoint
```

## Parameters

- `value`: A floating-point value to be converted.

## Discussion

Discussion If the given floating-point value cannot be represented exactly, the result is nil.

## See Also

### Converting with No Loss of Precision

- [init(exactly:)](swift/float/init(exactly:)-89na7.md)
- [init(exactly:)](swift/float/init(exactly:)-89pn7.md)
- [init(exactly:)](swift/float/init(exactly:)-6l5fa.md)
- [init(exactly:)](swift/float/init(exactly:)-zknq.md)
- [init(exactly:)](swift/float/init(exactly:)-1h1oe.md)
- [init(exactly:)](swift/float/init(exactly:)-8ho5q.md)
