circuitpython/tests/float/string_format_modulo3.py
Scott Shawcroft b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00

4 lines
135 B
Python

# uPy and CPython outputs differ for the following
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.2g" % 99.9) # round up