Operator: *=

operator *= { associativity right precedence assignment }

Declarations

func *=(_: inout Double, rhs: Double)

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

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Double, rhs: Double)
func *=(_: inout Float, rhs: Float)

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

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Float, rhs: Float)
func *=(_: inout Float80, rhs: Float80)

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

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Float80, rhs: Float80)
func *=(_: inout Int, rhs: Int)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Int, rhs: Int)
func *=(_: inout Int8, rhs: Int8)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Int8, rhs: Int8)
func *=(_: inout Int16, rhs: Int16)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Int16, rhs: Int16)
func *=(_: inout Int32, rhs: Int32)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Int32, rhs: Int32)
func *=(_: inout Int64, rhs: Int64)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout Int64, rhs: Int64)
func *=(_: inout UInt, rhs: UInt)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout UInt, rhs: UInt)
func *=(_: inout UInt8, rhs: UInt8)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout UInt8, rhs: UInt8)
func *=(_: inout UInt16, rhs: UInt16)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout UInt16, rhs: UInt16)
func *=(_: inout UInt32, rhs: UInt32)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout UInt32, rhs: UInt32)
func *=(_: inout UInt64, rhs: UInt64)

Multiplies two values and stores the result in the left-hand-side variable.

The product of the two arguments must be representable in the arguments' type. In the following example, the result of 21 * 21 is greater than the maximum representable Int8 value:

var x: Int8 = 21
x * 21
// Overflow error

Note: Overflow checking is not performed in -Ounchecked builds.

Parameters: lhs: The first value to multiply. rhs: The second value to multiply.

Declaration

func *=(lhs: inout UInt64, rhs: UInt64)