mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
5 lines
212 B
Python
5 lines
212 B
Python
# 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
|