summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/floordivide.py
blob: 60e7634b1b62925ee90fe2099810d980fa0d5de5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# check modulo matches python definition

# This tests compiler version
print(123 // 7)
print(-123 // 7)
print(123 // -7)
print(-123 // -7)

a = 10000001
b = 10000000
print(a // b)
print(a // -b)
print(-a // b)
print(-a // -b)