Stefan Krah added the comment: Decimal formatting intentionally differs from float formatting, see #23460. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23602> _______________________________________