summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float_format_ftoe.py
blob: bc4e5a4a53eb179db6fc12f77558457f790d065d (plain) (blame)
1
2
3
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.