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 Float, rhs: Float)

Parameters

lhs

A numeric value.

rhs

The value to subtract from lhs.

Discussion

Relationships

See Also

Arithmetic with Assignment

static func += (inout Float, Float)

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

static func *= (inout Float, Float)

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

static func /= (inout Float, Float)

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