<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Float80/init(_:)-33oy4",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7Float80VyABxcSzRzlufc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a new value, rounded to the closest possible representation.

```
init<Source>(_ value: Source) where Source : BinaryInteger
```

## Parameters

`value`

The integer to convert to a floating-point value.

## Discussion

If two representable values are equally close, the result is the value
with more trailing zeros in its significand bit pattern.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)