Multiplies two values and stores the result in the left-hand-side variable, wrapping any overflow.
- Xcode 10.0+
- Swift Standard Library
The first value to multiply.
The second value to multiply.
The masking multiplication assignment operator (
&*=) silently wraps any overflow that occurs during the operation. In the following example, the product of
50 is greater than the maximum representable
Int8 value, so the result is the partial value after discarding the overflowing bits.