1 2 3 4 5 6 7 8 9 10 11 12 13 14
# check modulo matches python definition # TODO we currenty fail with this if False: print(1.23456 % 0.7) print(-1.23456 % 0.7) print(1.23456 % -0.7) print(-1.23456 % -0.7) a = 1.23456 b = 0.7 print(a % b) print(a % -b) print(-a % b) print(-a % -b)