= Assignment |
Assigns the value of the right operand to the left operand. |
+= Add to this |
Adds the left and right operands and assigns the result to the left operand. For example, a += b is the same as a = a + b. |
-= Subtract from this |
Subtracts the right operand from the left operand and assigns the result to the left operand. For example, a -= b is the same as a = a - b. |
*= Multiply to this |
Multiplies the two operands and assigns the result to the left operand. For example, a *= b is the same as a = a * b. |
/= Divide this to |
Divides the left operand by the right operand and assigns the result to the left operand. For example, a /= b is the same as a = a / b. |
%= Modulus |
Divides the left operand by the right operand and assigns the remainder to the left operand. For example, a %= b is the same as a = a % b. |
&= Apply bitwise AND to this |
Performs bitwise AND on operands and assigns the result to the left operand. For example, a &= b is the same as a = a & b. |
|= Apply bitwise OR to this |
Performs bitwise OR on operands and assigns the result to the left operand. For example, a |= b is the same as a = a | b. |
<<= Apply bitwise left shift to this |
Performs bitwise left shift on operands and assigns the result to the left operand. For example, a <<= b is the same as a = a << b. |
>>= Apply bitwise signed right shift to this |
Performs bitwise right shift on operands and assigns the result to the left operand. For example, a >>= b is the same as a = a >> b. |
>>>= Apply bitwise unsigned right shift to this |
Performs bitwise unsigned right shift on operands and assigns the result to the left operand. For example, a >>>= b is the same as a = a> >> b. |