summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/string_format_modulo3.py
blob: 563964786502b4bc49f86905f6e4194afd9eea05 (plain) (blame)
1
2
3
4
# uPy and CPython outputs differ for the following
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.1e" % 9.99) # round up with positive exponent
print("%.1e" % 0.999) # round up with negative exponent