6 is binary 0110. Because the Shift argument is negative, the function shifts the value 6 right by one bit, to give binary 0011 or decimal 3.