9 lines
184 B
Text
9 lines
184 B
Text
# numbers are doubles, bit operations use 32 bits and are unsigned
|
|
x = 11
|
|
y = 2
|
|
print bitnot x
|
|
print bitand x y
|
|
print bitor x y
|
|
print bitxor x y
|
|
print bitshift x y
|
|
print bitshift x -y
|