summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/float_format.py')
-rw-r--r--tests/float/float_format.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/float_format.py b/tests/float/float_format.py
index 4d5ad1d693..cda395ce02 100644
--- a/tests/float/float_format.py
+++ b/tests/float/float_format.py
@@ -9,3 +9,7 @@ for val in (116, 1111, 1234, 5010, 11111):
# make sure rounding is done at the correct precision
for prec in range(8):
print(('%%.%df' % prec) % 6e-5)
+
+# check certain cases that had a digit value of 10 render as a ":" character
+print('%.2e' % float('9' * 51 + 'e-39'))
+print('%.2e' % float('9' * 40 + 'e-21'))