New submission from Francis Nimick: Locale.format() doesn't work correctly with floating point numbers.
locale.format('%.0f', 5.5) -> 6 locale.format('%.0f', 6.5) -> 6 locale.format('%.0f', 7.5) -> 8 locale.format('%.0f', 8.5) -> 8 It seems that if the number before the decimal point is even, it rounds down, else it rounds up. ---------- components: Library (Lib) messages: 182554 nosy: Francis.Nimick priority: normal severity: normal status: open title: locale.format() rounding is not reliable for floats type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17259> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com