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

# 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/double/init(exactly:)-1h1oc.md)
- [init(exactly:)](swift/double/init(exactly:)-2uexo.md)
- [init(exactly:)](swift/double/init(exactly:)-2l6p1.md)
- [init(exactly:)](swift/double/init(exactly:)-7cl0t.md)
- [init(exactly:)](swift/double/init(exactly:)-50ofc.md)
- [init(exactly:)](swift/double/init(exactly:)-63925.md)
- [init(exactly:)](swift/double/init(exactly:)-8e00y.md)
