mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/float/builtin_float_round: Test round() with second arg.
This commit is contained in:
@@ -13,5 +13,5 @@ for i in range(11):
|
|||||||
print(round((i - 5) / 2))
|
print(round((i - 5) / 2))
|
||||||
|
|
||||||
# test second arg
|
# test second arg
|
||||||
# TODO uPy currently only supports second arg being 0
|
for i in range(-1, 3):
|
||||||
print(round(1.4, 0))
|
print(round(1.47, i))
|
||||||
|
|||||||
Reference in New Issue
Block a user