New submission from steven Michalske <smichal...@gmail.com>:

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.

----------
messages: 100413
nosy: hardkrash
severity: normal
status: open
title: PEP 3101 string formatting missing engineering presentation type for 
floating point
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to