commit | 0ab10e460089fcdb9131ab1bdbe92142a76a83f3 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jan 08 09:03:11 2011 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jan 08 09:03:11 2011 +0000 |
tree | 01383a552ffbd52da81930f72e623a37183e29bf | |
parent | 23f9fc344827c02cf2450f7e0903681e69db201a [diff] |
Issue #10813: Small improvement to decimal money format recipe.
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 7c448e6..bf153ba 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst
@@ -1657,7 +1657,8 @@ build(trailneg) for i in range(places): build(next() if digits else '0') - build(dp) + if places: + build(dp) if not digits: build('0') i = 0