mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
tests/float: Improve formatfloat.c test coverage using Python.
This commit is contained in:
4
tests/float/string_format_modulo3.py
Normal file
4
tests/float/string_format_modulo3.py
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user