micropython/tests/basics/int_big_cmp.py

11 wiersze
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)