summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/string_format_modulo3.py
blob: 5d26f25751d49f85c325c905e35777b176a9b833 (plain) (blame)
1
2
3
# uPy and CPython outputs differ for the following
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.2g" % 99.9) # round up