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 hardkrash
Recipients hardkrash
Date 2010-03-04.20:12:46
SpamBayes Score 7.177487e-08
Marked as misclassified No
Message-id <1267733568.91.0.590819765764.issue8060@psf.upfronthosting.co.za>
In-reply-to
Content
I started using the .format() on strings and was surprised that it was lacking an built in format specifier for engineering notation.

For those unfamiliar with engineering notation it puts the exponent of the number in modulo 3 so that it is in alignment with SI prefixes  such as kilo, micro, milli, etc...

11,000 in engineering notation would be 11.000e3

At this time if i want engineering notation I need to use a function to convert it to a string and then print the string.  Most inconvenient for a standard formatting used in the engineering fields.
History
Date User Action Args
2010-03-04 20:12:49hardkrashsetrecipients: + hardkrash
2010-03-04 20:12:48hardkrashsetmessageid: <1267733568.91.0.590819765764.issue8060@psf.upfronthosting.co.za>
2010-03-04 20:12:47hardkrashlinkissue8060 messages
2010-03-04 20:12:47hardkrashcreate