Generic Initializer

init(exactly:)

Creates a new instance from the given value, if it can be represented exactly. 新しいインスタンスをこの与えられた値から作成します、もしそれが正確に表現できるならば。

Declaration 宣言

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

Parameters パラメータ

value

A floating-point value to be converted. 変換されることになる浮動小数点値。

Discussion 解説

If the given floating-point value cannot be represented exactly, the result is nil. 与えられた浮動小数点値が正確に表現できないならば、結果はnilです。

See Also 参照

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