summaryrefslogtreecommitdiff
path: root/tests/float/string_format_modulo3.py
blob: f8aeeda20f29c6f7f7534422a46cbefd2684bd36 (plain)
1
2
3
# Test corner cases where MicroPython and CPython outputs used to differ in the past
print("%.1g" % -9.9)  # round up 'g' with '-' sign
print("%.2g" % 99.9)  # round up