Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Nov 15, 2016
1 parent 64e96c7 commit 83cd7d4
Showing 1 changed file with 0 additions and 0 deletions.
Binary file modified 人民币金额大写.alfredworkflow
Binary file not shown.

2 comments on commit 83cd7d4

@leoleozhu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

事实上,应该把 {query}变成'{query}',以使Decimal直接应用于字符串,否则会被转换为float调用to_rmb_upper,丢失精度。

callback(NumToCny.to_rmb_upper({query}))
callback(NumToCny.to_rmb_upper('{query}'))

例如: cny 245.135 前者显示245.13,后者显示245.14 (rounding=ROUND_HALF_EVEN)

@yourtion
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我晚点修改一下~谢啦

Please sign in to comment.