PB实现人民币大写转换函数

更新时间:2023-05-18 13:45:12 阅读: 评论:0

PB实现⼈民币⼤写转换函数
2011年专四真题//------------------------------------------
//gf_cm_upper_number(decimal  ar_amount) return string
// 参数ar_amount,类型 decimal
// 返回值类型 string
imac是什么
//
//-------------------------------------------
string ls_input
integer li_strlen, li_cursor, li_count
string ls_result, ls_digit
integer li_digit
/
/String constant
string ls_const_CC_number[] = {"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"}
string ls_const_CC_Unit[] = {"", "拾", "佰", "仟","万","拾","佰","仟","亿","拾","佰","仟"}
造价师合格标准
string ls_yuan = "元", ls_jiao = "⾓", ls_fen = "分", ls_negtive = "负"
//Convert the input real value to string
ls_input = string(abs(ar_amount), "0.00")
北京贝乐学科英语li_strlen = len(ls_input)
//Generate Integer part
ls_result = ls_yuan
li_count = 0
FOR li_cursor = li_strlen - 3 TO 1 STEP -1
li_count = li_count + 1
ls_digit = mid(ls_input, li_cursor, 1)
osaka//Get the index of the table number
li_digit = Integer(ls_digit)
ls_result = ls_const_CC_number[li_digit + 1] + &
ls_const_CC_Unit[li_count] + ls_result吸血鬼日记第四季剧情
NEXT
If double(mid(ls_input,li_strlen -2,2)) = 0 then
trump是什么意思
ls_result = ls_result + '整'
El
ls_digit = mid(ls_input, li_strlen - 1, 1)labor是什么意思
li_digit = Integer(ls_digit)
ls_result = ls_result + ls_const_CC_number[li_digit + 1] + ls_jiao
ls_digit = mid(ls_input, li_strlen , 1)
li_digit = Integer(ls_digit)
ls_result = ls_result + ls_const_CC_number[li_digit + 1] + ls_fen
End if
IF ar_amount < 0 THEN
ls_result = ls_negtive + ls_result
fism
END IF
全国英语六级考试成绩查询RETURN ls_result

本文发布于:2023-05-18 13:45:12,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/113327.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:民币   造价师   日记   考试成绩   真题
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图