[issue7094] Add alternate float formatting styles to new-style formatting.

Mark Dickinson report at bugs.python.org
Fri Oct 9 22:04:18 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

Just for reference, the effect of the alternative style is explained 
succinctly in the C99 standard (well, the N1256 draft, anyway):

"For a, A, e, E, f, F, g, and G conversions, the result of converting a 
floating-point number always contains a decimal-point character, even if 
no digits follow it. (Normally, a decimal-point character appears in the 
result of these conversions only if a digit follows it.) For g and G 
conversions, trailing zeros are not removed from the result. For other 
conversions, the behavior is undefined."

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7094>
_______________________________________


More information about the Python-bugs-list mailing list