micropython/tests/basics/int_big_rshift.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
163 B
Python
Raw Normal View History

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