These are bit operators that works with integer, two are binary one is unary. The result is always integer.
Operator | Datatype | Description |
---|---|---|
& | integer | Bits of the result number are product of the bits of the operands (bit and). |
| | integer | Bits of the result number are count of the bits of the operands (bit or). |
~ | integer | Bits of the result number are reverted bits of operand (bit not). |
<< | integer | Bits of the result number are left shifted bits of the operands (bit shift left). |
>> | integer | Bits of the result number are right shifted bits of the operands (bit shift right). |