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 serge.stroobandt
Recipients Keith.Brafford, eric.smith, ezio.melotti, serge.stroobandt
Date 2016-01-27.19:15:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453922113.08.0.48679853518.issue26223@psf.upfronthosting.co.za>
In-reply-to
Content
In https://docs.python.org/2/library/string.html#formatstrings the proprietary (IBM) specifcation "Decimal Arithmetic Specification" http://www.gobosoft.com/eiffel/gobo/math/decimal/daconvs.html is incorrectly being heralded as "the" specifiaction for engineering notation.

However, upon reading this IBM specifation carefully, one will note that the specifaction itself actually admits not applying the engineering notation in the case of infinite numbers.

An emphasized version of the exact quote accompanied with a discussion can be found here: http://stackoverflow.com/a/17974598/2192488

Correct behaviour for decimal.to_eng_string() would be to equally employ engineering notation in the case of infinite numbers.

I suggest renaming the current behaviour to decimal.to_ibm_string().

References:
http://www.augustatech.edu/math/molik/notation.pdf
https://en.wikipedia.org/wiki/Engineering_notation
https://en.wikipedia.org/wiki/General_Conference_on_Weights_and_Measures
http://www.bipm.org/en/CGPM/db/11/11/

PS: I am a MSc in Electronic Engineering.
History
Date User Action Args
2016-01-27 19:15:13serge.stroobandtsetrecipients: + serge.stroobandt, eric.smith, ezio.melotti, Keith.Brafford
2016-01-27 19:15:13serge.stroobandtsetmessageid: <1453922113.08.0.48679853518.issue26223@psf.upfronthosting.co.za>
2016-01-27 19:15:12serge.stroobandtlinkissue26223 messages
2016-01-27 19:15:12serge.stroobandtcreate