summaryrefslogtreecommitdiff
path: root/tests/float/float_parse_doubleprec.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/float_parse_doubleprec.py')
-rw-r--r--tests/float/float_parse_doubleprec.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/float/float_parse_doubleprec.py b/tests/float/float_parse_doubleprec.py
index 2ea7842f3..dcc0dd592 100644
--- a/tests/float/float_parse_doubleprec.py
+++ b/tests/float/float_parse_doubleprec.py
@@ -11,9 +11,9 @@ print(float('.' + '9' * 400 + 'e100'))
print(float('.' + '9' * 400 + 'e-100'))
# tiny fraction with large exponent
-print(float('.' + '0' * 400 + '9e100'))
-print(float('.' + '0' * 400 + '9e200'))
-print(float('.' + '0' * 400 + '9e400'))
+print('%.14e' % float('.' + '0' * 400 + '9e100'))
+print('%.14e' % float('.' + '0' * 400 + '9e200'))
+print('%.14e' % float('.' + '0' * 400 + '9e400'))
# ensure that accuracy is retained when value is close to a subnormal
print(float('1.00000000000000000000e-307'))