Operator

-=(_:_:)

Subtracts the second value from the first and stores the difference in the left-hand-side variable, rounding to a representable value.

Declaration

static func -= (lhs: inout Double, rhs: Double)

Parameters

lhs

A numeric value.

rhs

The value to subtract from lhs.

Discussion

Relationships

See Also

Arithmetic with Assignment

static func += (inout Double, Double)

Adds two values and stores the result in the left-hand-side variable, rounded to a representable value.

static func *= (inout Double, Double)

Multiplies two values and stores the result in the left-hand-side variable, rounding to a representable value.

static func /= (inout Double, Double)

Divides the first value by the second and stores the quotient in the left-hand-side variable, rounding to a representable value.