circuitpython/tests/float/string_format_modulo3.py

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

4 lines
135 B
Python
Raw Normal View History

# uPy and CPython outputs differ for the following
2021-03-15 09:57:36 -04:00
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.2g" % 99.9) # round up