1 2 3 4 5 6 7 8
# test round() with integral values tests = [ False, True, 0, 1, -1, 10 ] for t in tests: print(round(t))