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

# init(exactly:)

Creates a new value, if the given integer can be represented exactly.

## Declaration

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

## Parameters

- `value`: The integer to convert to a floating-point value.

## Discussion

Discussion If the given integer cannot be represented exactly, the result is nil.

## See Also

### Converting with No Loss of Precision

- [init(exactly:)](swift/double/init(exactly:)-8esra.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)
