You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
133 B
4 lines
133 B
4 years ago
|
# uPy and CPython outputs differ for the following
|
||
|
print("%.1g" % -9.9) # round up 'g' with '-' sign
|
||
|
print("%.2g" % 99.9) # round up
|