10 lines
233 B
Text
10 lines
233 B
Text
# numbers are doubles, bit operations are unsigned, truncate
|
|
# the fractional part and use 53 integer bits
|
|
a = 14
|
|
b = 3
|
|
print bitand a b
|
|
print bitor a b
|
|
print bitxor a b
|
|
print bitshift a b
|
|
print bitshift a -b
|
|
print bitand a bitnot b
|