circuitpython/tests/basics/builtin_round.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
119 B
Python
Raw Normal View History

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