Creates a new value, rounded to the closest possible representation.
Required.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
init<Source>(_ value: Source) where Source : Binary Integer
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.