kuroko/test/testOperators.krk
2021-01-19 19:29:29 +09:00

32 lines
291 B
Python

import math
# Import is needed or we don't have pow. Dunno if I care to fix that.
let x = 1.27
print(x ** 2.7)
x **= 2.7
print(x)
let x = 123
print(x << 1)
x <<= 1
print(x)
x >>= 1
print(x)
x |= 321
print(x)
x ^= 321
print(x)
x ^= 321
print(x)
x++
print(x)
x+=2
print(x)
x--
print(x)