Skip to content

Commit

Permalink
fixed #3 万亿以上的部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Mar 25, 2016
1 parent b3506fa commit 5e97563
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/NumToCny.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def to_rmb_upper(price):
#处理万亿以上的部分
if integer_part >= 1000000000000 and wanyi_part > 0:
zero_count = _parse_integer(strio, wanyi_part, zero_count, True)
strio.write('万')
if yi_part > 0:
strio.write('万')
else:
strio.write('万亿')

#处理亿到千亿的部分
if integer_part >= 100000000 and yi_part > 0:
Expand Down
Binary file modified 人民币金额大写.alfredworkflow
Binary file not shown.

0 comments on commit 5e97563

Please sign in to comment.