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

# 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/float/init(exactly:)-8esr8.md)
- [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:)-8ho5q.md)
