Instance Method インスタンスメソッド

addingProduct(_:_:)

Returns the result of adding the product of the two given values to this value, computed without intermediate rounding. 2つの与えられた値の積をこの値に加える結果を返します、中間の丸めなしで計算されます。

Declaration 宣言

func addingProduct(_ lhs: Float, _ rhs: Float) -> Float

Parameters パラメータ

lhs

One of the values to multiply before adding to this value. この値に加えられる前に掛け合わされる値のうちの1つ。

rhs

The other value to multiply. 掛け合わされることになるもう一方の値。

Return Value 戻り値

The product of lhs and rhs, added to this value. この値に加えられることになる、lhsrhsの積。

Discussion 解説

This method is equivalent to the C fma function and implements the fusedMultiplyAdd operation defined by the IEEE 754 specification. このメソッドは、C fma関数の等価物です、そしてfusedMultiplyAdd演算を実装し、それはIEEE 754仕様によって定義されます。

See Also 参照

Performing Calculations 計算の実行