[issue36622] Inconsistent exponent notation formatting
Karthikeyan Singaravelan
report at bugs.python.org
Sun Apr 14 01:55:10 EDT 2019
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
Seems this has tests at https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/test/test_decimal.py#L941 . I also noticed the below. Considering this is the behavior from 2.7 is it a conscious design decision?
>>> '{:.5e}'.format(1.23457e+8)
'1.23457e+08'
>>> '{:.5e}'.format(decimal.Decimal(1.23457e+8))
'1.23457e+8'
----------
nosy: +xtreak
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36622>
_______________________________________
More information about the Python-bugs-list
mailing list