Contents

init(exactly:)

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

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.