New submission from pushpendre rastogi: Hi, The string formatting module in python 2.7 incorrectly formats floating point values. The following code shows the problem
>>> print "%.10s"%(-7.7176718e-05) -7.7176718 >> print "%.10s"%(-0.0000771767) -7.71767e- Ideally the code should have thrown an exception (first preference) or it should have printed -0.0000771767 (second preference) or -7.7176718e-05 (third preference) ---------- components: Library (Lib) messages: 237769 nosy: pushpendre rastogi priority: normal severity: normal status: open title: Incorrect string formatting of float values in Python 2.7 versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23627> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com