Generic Initializer
init(exactly:)
Creates a new instance from the given value, if it can be represented exactly.
Parameters
value
A floating-point value to be converted.
Discussion
If the given floating-point value cannot be represented exactly, the result is nil
.
See Also
Converting with No Loss of Precision
init?(exactly: Double)
Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float)
Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float80)
Creates a new instance initialized to the given value, if it can be represented without rounding.