micropython/tests/basics/builtin_round.py

9 wiersze
120 B
Python
Czysty Zwykły widok Historia

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