Rotate

Rotates x the number of bits specified by y. The connector pane displays the default data types for this polymorphic function.

If y is greater than 0, the function rotates x left y bits (from least significant to most significant bit) and inserts the high-order bits in the low-order bits. If y is less than 0, the function rotates x right y bits (from most significant to least significant bit) and inserts the low-order bits in the high-order bits.
If x is a byte, word, or long integer, then for any value of y, y ± 8, y ± 16, or y ± 32 yields the same output value, respectively, as y. For example, if x is a byte integer, y = 1 and y = 9 yield the same result.
x rotated left by y is the result of the rotation. The data type of x rotated left by y is determined by the input data types.