Christoph Zwerschke <cito at online.de> added the comment: This is a related problem on Windows: '%g' % 1e400 -> '1.#INF' '%.f' % 1e400 --> '1' ---------- nosy: +cito _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue4799> _______________________________________