RosettaCodeData/Task/Bitwise-operations/EasyLang/bitwise-operations.easy

11 lines
233 B
Text
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
# 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