We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
83cd7d4
There was a problem 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}'))
callback(NumToCny.to_rmb_upper({query}))
callback(NumToCny.to_rmb_upper('{query}'))
例如: cny 245.135 前者显示245.13,后者显示245.14 (rounding=ROUND_HALF_EVEN)
Sorry, something went wrong.
好的,我晚点修改一下~谢啦
83cd7d4
There was a problem hiding this comment.
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)
83cd7d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,我晚点修改一下~谢啦