mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #10813: Small improvement to decimal money format recipe.
This commit is contained in:
parent
23f9fc3448
commit
0ab10e4600
1 changed files with 2 additions and 1 deletions
|
@ -1657,7 +1657,8 @@ to work with the :class:`Decimal` class::
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue