circuitpython/tests/basics/int_big_cmp.py

11 lines
122 B
Python
Raw Permalink Normal View History

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