diff options
Diffstat (limited to 'tests/float/float_format_ftoe.py')
-rw-r--r-- | tests/float/float_format_ftoe.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/float_format_ftoe.py b/tests/float/float_format_ftoe.py new file mode 100644 index 0000000000..bc4e5a4a53 --- /dev/null +++ b/tests/float/float_format_ftoe.py @@ -0,0 +1,4 @@ +# check a case where rounding was suppressed inappropriately when "f" was +# promoted to "e" for large numbers. +v = 8.888e32 +print("%.2f" % v) # '%.2f' format with e32 becomes '%.2e', expect 8.89e+32. |