Operator 演算子

*(_:_:)

Multiplies two values and produces their product, rounding to a representable value. 2つの値を乗算してそれらの積を生成します、表現可能な値へ丸められます。

Declaration 宣言

static func * (lhs: Float, rhs: Float) -> Float

Parameters パラメータ

lhs

The first value to multiply. 掛け合わされる第1の値。

rhs

The second value to multiply. 掛け合わされる第2の値。

Discussion 解説

The multiplication operator (*) calculates the product of its two arguments. For example: 乗算演算子(*)は、それの2つの引数の積を計算します。例えば:


let x = 7.5
let y = x * 2.25
// y == 16.875

The * operator implements the multiplication operation defined by the IEEE 754 specification. *演算子は、IEEE 754 仕様によって定義される乗算演算子を実装します。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Arithmetic 算術