小写金额转换为大写的金额
小写金额转换成大写金额
程序源代码如下:
int i,lendec,lenint
string numstr,a,b,c,d,bbak
numstr=string(aje,"#0.00")
lenint=len(mid(numstr,1,pos(numstr,'.') - 1))
if right(numstr,2)='00' then
lendec=0
else
lendec=2
end if
string dxint[13],dxdec[2],sz[13]
string dxstr="万仟佰拾亿仟佰拾万仟佰拾元"
string szstr="零壹贰叁肆伍陆柒捌玖"
for i=1 to 13
dxint[i]=mid(dxstr,26 - i*2+1,2)
if i<11 then
sz[i]=mid(szstr,i*2 - 1,2)
else
sz[i]=" "
end if
next
dxdec[1]="角"
dxdec[2]="分"
dxstr=" "
for i = 1 to lenint
a = mid(mid(numstr,1,lenint),i,1)
b = sz[integer(a)+1]
c = dxint[lenint - i +1]
if dxstr<>" " then
d = mid(dxstr,len(dxstr) - 1 ,2)
else
d = " "
end if
if b="零" and (d="零" or b=bbak or c="元" or c="万" or c="亿") then b= ""
if a="0" and c<>"元" and c<>"万" and c<>"亿" then c=""
if (c="元" or c="万" or c="亿") and d="零" and a="0" then
dxstr=mid(dxstr,1,len(dxstr) - 2)
d = mid(dxstr,len(dxstr) - 1,2)
if (c="元" and d="万" or c="万"and d="亿") then c=""
end if
dxstr=dxstr + b + c
bbak = b
一个公式,轻松将小写金额转化成大写金额_电脑基础知识_IT/计算机_专业资料。一个公式,轻松将小写金额转化成大写金额。关键是安全、无毒啊!...
小写金额转换为大写金额(C实现)_IT/计算机_专业资料。小写金额转换为大写金额前言 银行、单位和个人填写的各种票据和结算凭证是办理支付结算和现金收付的重要依据, ...
单元格小写金额自动转换成大写金额_IT/计算机_专业资料。Excel 中怎么实现小写金额自动转换成中文大写金 额 EXCEL 中数字小写换大写方法一: 在单元格 A2 中输入...
小写金额转大写金额公式_表格类模板_表格/模板_应用文书。很好用的,方便Excel数字小写金额转换汉字大写金额公式的简单设置来源: 葛翔的日志 Excel数字小写金额转换...
java传入金额转化成大写 暂无评价 1页 1下载券 小写金额转换成大写金额... ... java 代码 ,小写转成...
小写金额转大写金额(new)_IT/计算机_专业资料。输入小写金额自动转为大写金额123,456,789.99 ¥壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元玖角玖分 公式: "¥"&...
人民币小写金额转换成大写格式要将人民币小写金额转换成大写格式,用 Excel 提供的格式,将自定义格式类型中的 “[dbnum2]G/通用格式”改为“[dbnum2] G/通用...
SQL小写金额转换成大写_IT/计算机_专业资料。Sql2005自定义函数if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[L2U]') and x...
怎么用Excel将小写金额转换成人民币的大写金额_IT/计算机_专业资料。怎么用Excel将小写金额转换成人民币的大写金额怎么用 Excel 将小写金额转换成人民币的大写金额?...
小写金额转换大写金额_电子/电路_工程科技_专业资料。今日推荐 ... 5页 免费 小写金额转换成大写金额 2页 1下载券喜欢此文档的还喜欢...
热门文档