Creates a new instance that approximates the given value.
SDK
- Xcode 6.1+
Framework
- Swift Standard Library
Declaration
init(_ other: Float80)
Parameters
otherThe value to use for the new instance.
Discussion
The value of other is rounded to a representable value, if necessary. A NaN passed as other results in another NaN, with a signaling NaN value converted to quiet NaN.
let x: Float80 = 21.25
let y = Double(x)
// y == 21.25
let z = Double(Float80.nan)
// z.isNaN == true