micropython/tests/basics/int_big_rshift.py

8 wiersze
149 B
Python
Czysty Zwykły widok Historia

i = 123456789012345678901234567890
print(i >> 1)
print(i >> 1000)
2015-10-01 17:49:37 +00:00
# result needs rounding up
print(-(1<<70) >> 80)
print(-0xffffffffffffffff >> 32)