Generic Initializer

init(exactly:)

Creates a new value, if the given integer can be represented exactly. 与えられた整数が正確に表現できるならば、新しい値を作成します。

Declaration 宣言

init?<Source>(exactly value: Source) where Source : BinaryInteger
Available when RawSignificand conforms to FixedWidthInteger. RawSignificandFixedWidthIntegerに準拠する時に利用可能です。

Parameters パラメータ

value

The integer to convert to a floating-point value. 浮動小数点値へ変換されることになる整数。

Discussion 解説

If the given integer cannot be represented exactly, the result is nil. 与えられた整数が正確に表現できないならば、結果はnilです。

See Also 参照

BinaryFloatingPoint Implementations バイナリ浮動小数点実装