summaryrefslogtreecommitdiff
path: root/tests/float 2/string_format_modulo3.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float 2/string_format_modulo3.py')
-rw-r--r--tests/float 2/string_format_modulo3.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float 2/string_format_modulo3.py b/tests/float 2/string_format_modulo3.py
new file mode 100644
index 000000000..5d26f2575
--- /dev/null
+++ b/tests/float 2/string_format_modulo3.py
@@ -0,0 +1,3 @@
+# uPy and CPython outputs differ for the following
+print("%.1g" % -9.9) # round up 'g' with '-' sign
+print("%.2g" % 99.9) # round up