circuitpython/tests/basics/builtin_round.py
2015-07-19 21:49:44 +03:00

9 lines
119 B
Python

# test round() with integral values
tests = [
False, True,
0, 1, -1, 10
]
for t in tests:
print(round(t))