Generic Initializer

init(exactly:)

Creates a new value, if the given integer can be represented exactly.

Required.

Declaration

init?<Source>(exactly value: Source) where Source : BinaryInteger

Parameters

value

The integer to convert to a floating-point value.

Discussion

If the given integer cannot be represented exactly, the result is nil.