Generic Initializer
init(_:)
Creates a new value, rounded to the closest possible representation.
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.
See Also
Converting Floating-Point Values
init<Source>(Source)
Creates a new instance from the given value, rounded to the closest possible representation.
init(Double)
Creates a new instance initialized to the given value.
init(Float)
Creates a new instance that approximates the given value.
init(Float80)
Creates a new instance that approximates the given value.
init(CGFloat)
Creates a new instance initialized to the given value.