circuitpython/tests/basics/int_big_cmp.py

11 lines
122 B
Python

# test bignum comparisons
i = 1 << 65
print(i == 0)
print(i != 0)
print(i < 0)
print(i > 0)
print(i <= 0)
print(i >= 0)