[docs] [issue13433] String format documentation contains error regarding %g

Christian Iversen report at bugs.python.org
Sat Nov 26 10:17:01 CET 2011

Christian Iversen <ci at sikkerhed.org> added the comment:

Terry, the %g format always trims trailing zeroes, so you'd have to try with a number that doesn't end in zero.

I had to make a re-implementation of format for javascript:


If you look at the %g case, you can clearly see how much more complex and different it is, not that that itself indicates a bug. But it is different for sure :)


Python tracker <report at bugs.python.org>

More information about the docs mailing list