4.3. Bitwise functions #

4.3.1. and()
4.3.2. not()
4.3.3. or()
4.3.4. shl()
4.3.5. shr()
4.3.6. xor()

4.3.1. and() #

Bitwise AND. It takes two or more numeric operands. Operator & is a shortcut for this function.

4.3.2. not() #

Bitwise NOT. It takes one numeric operand. It returns the bit-by-bit negated value of its operand. Prefix operator ~ is a shortcut for this function.

4.3.3. or() #

Bitwise OR. It takes two or more numeric operands. Operator | is a shortcut for this function.

4.3.4. shl() #

Bitwise shift left. It takes two numeric operands. Shifts the first operand left with the number of bits specified by the second operand. The operand << is a shortcut for this function.

4.3.5. shr() #

Bitwise shift right. It takes two numeric operands. Shifts the first operand right with the number of bits specified by the second operand. The operand >> is a shortcut for this function.

4.3.6. xor() #

Bitwise exclusive OR. It takes two or more numeric operands.