circuitpython/tests/float/builtin_float_round_intbig.py

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

5 lines
108 B
Python
Raw Normal View History

# test round() with floats that return large integers
for x in (-1e25, 1e25):
2021-03-15 09:57:36 -04:00
print("%.3g" % round(x))