Operator 演算子

+(_:_:)

Adds two values and produces their sum, rounded to a representable value. 2つの値を加算してそれらの合計を生成します、表現可能な値へ丸められます。

Declaration 宣言

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

Parameters パラメータ

lhs

The first value to add. 加算する第1の値。

rhs

The second value to add. 加算する第2の値。

Discussion 解説

The addition operator (+) calculates the sum of its two arguments. For example: 加算演算子(+)は、それの2つの引数の合計を計算します。例えば:


let x = 1.5
let y = x + 2.25
// y == 3.75

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

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Arithmetic 算術