Generic Initializer

init(_:)

Creates a new value, rounded to the closest possible representation. 新しい値を作成します、最も近い可能な表現へ丸められます。

Declaration 宣言

init<Source>(_ value: Source) where Source : BinaryInteger

Parameters パラメータ

value

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

Discussion 解説

If two representable values are equally close, the result is the value with more trailing zeros in its significand bit pattern. 2つの表現可能な値が同等であるくらい近いならば、結果はその仮数ビットパターンにおいてより多く後ろに続くゼロを持つ値です。

See Also 参照

Converting Floating-Point Values 浮動小数点値の変換