---
title: "init(_:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/double/init(_:)-1488d"
---

# init(_:)

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

## Declaration

```swift
init<Source>(_ value: Source) where Source : BinaryFloatingPoint
```

## Parameters

- `value`: A floating-point value to be converted.

## Discussion

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

## See Also

### Converting Floating-Point Values

- [init(_:)](swift/double/init(_:)-o1k9.md)
- [init(_:)](swift/double/init(_:)-5h7qh.md)
- [init(_:)](swift/double/init(_:)-aeox.md)
- [init(_:)](swift/double/init(_:)-9z7ob.md)
- [init(_:)](swift/double/init(_:)-7ag2w.md)
- [init(sign:exponent:significand:)](swift/double/init(sign:exponent:significand:).md)
- [init(signOf:magnitudeOf:)](swift/double/init(signof:magnitudeof:).md)
- [init(_:)](swift/double/init(_:)-1oh9r.md)
- [init(truncating:)](swift/double/init(truncating:).md)
