Shift Operators
It is important to note that the order in which items appear in this table are arbitrary. All operators have equal precedence to ACL.
Table 13. Shift Operators table
<<
$i << 2 shifts the (unsigned) value of $i left by 2 bit positions.
>>
$i >> 2 shifts the (unsigned) value of $i right by 2 bit positions.
The following operators are numeric and require numeric operands:
+, -, *, /, &, ^, |, <<, >>, %, ~, ++, and ––
Related Topics
Est-ce que cela a été utile ?