builtin_round.py 119 B

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