|
发表于 2013-5-7 01:03:53
|
显示全部楼层
#var hanzinumber %1
#var hanzinumber %replace( @hanzinumber, "零", "+0")
#var hanzinumber %replace( @hanzinumber, "一", "+1")
#var hanzinumber %replace( @hanzinumber, "二", "+2")
#var hanzinumber %replace( @hanzinumber, "三", "+3")
#var hanzinumber %replace( @hanzinumber, "四", "+4")
#var hanzinumber %replace( @hanzinumber, "五", "+5")
#var hanzinumber %replace( @hanzinumber, "六", "+6")
#var hanzinumber %replace( @hanzinumber, "七", "+7")
#var hanzinumber %replace( @hanzinumber, "八", "+8")
#var hanzinumber %replace( @hanzinumber, "九", "+9")
#var hanzinumber %replace( @hanzinumber, "十", "*10")
#var hanzinumber %replace( @hanzinumber, "百", "*100")
#var hanzinumber %replace( @hanzinumber, "千", "*1000")
#var hanzinumber %replace( @hanzinumber, "万", "*10000")
#if (%begins( @hanzinumber, "*")) {#var hanzinumber %delete( @hanzinumber, 1, 1)}
#if (%begins( @hanzinumber, "+") and %pos( "*10000", @hanzinumber)<>0) {
#var hanzinumber %insert( "(", @hanzinumber, 1)
#var hanzinumber %replace( @hanzinumber, "*10000", ")*10000")
}
hanzinumber=%eval( @hanzinumber) |
|