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

# 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.
