string_format_modulo3.py 133 B

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