Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 266 Bytes

1497-language-rshift.markdown

File metadata and controls

17 lines (10 loc) · 266 Bytes

RSHIFT

result = x RSHIFT n

Performs a bitwise operation that shifts all the bits of x to the right by an amount of n.

Example

n = 0b1100 rshift 2 print bin(n) ' Output: 11 n = 0b1100 rshift 3 print bin(n) ' Output: 1 
close