This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Keith.Brafford, eric.smith, ezio.melotti, facundobatista, mark.dickinson, rhettinger, serge.stroobandt, skrah, tim.peters
Date 2016-01-28.08:07:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I also agree that we shouldn't change the current code. As Raymond says, it may be worth a doc change.

Serge: I was confused by your initial report. If I understand the StackOverflow question correctly, this isn't about the output for *infinite* numbers (e.g., `Decimal('inf')` and `Decimal('-inf')`), and I'm not sure what that would mean. Rather, it's about the output for small finite numbers, where an exponent wouldn't be used in the normal scientific notation. So some people would (understandably) rather see:

>>> Decimal('123456').to_eng_string()
>>> Decimal('0.02').to_eng_string()

than the current

>>> Decimal('123456').to_eng_string()
>>> Decimal('0.02').to_eng_string()

for example. Is that what you meant? 

Stefan: IEEE 754 does cover formatting (in section 5.12, "Details of conversion between floating-point data and external character sequences"), but has nothing to say about engineering formats.
Date User Action Args
2016-01-28 08:07:25mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, facundobatista, eric.smith, ezio.melotti, skrah, Keith.Brafford, serge.stroobandt
2016-01-28 08:07:25mark.dickinsonsetmessageid: <>
2016-01-28 08:07:25mark.dickinsonlinkissue26223 messages
2016-01-28 08:07:24mark.dickinsoncreate