惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - 明月伴我行

摆脱烦人的Google.cn 淘宝助理CSV文件导入后无法显示宝贝图片的解决办法 Orcas 将不包括ADO.NET Entity Framework 用WINDOWS FORM写阻抗机3540、3541测量程序 Firefox中文字型的设置 Sharepoint server 2007 中文版出来了,msdn订阅用户可以下载了 Virtual Server+Vmware+WideScreen Solve problem searching file in Emule and error occurs:Please Use Emule 0.47c And Enable Protocol Obfuscation To Get Results 要找1-2个美工,有合适的人联系看看 含有运算符的STRING得到计算结果,类似JS的EVAL 發布asp.net 2.0項目中出現的錯誤,請各位指點。 Today is my birthday 產生隨機數 表单验证类 INI类 安裝Visual Studio 2005 July CTP 中的Visio辦法 郁悶,寫了幾個星期的asp程序 自定格式字串formatstring: WebGrid.net 3.5 Column圖像鏈接的用法
人民幣小寫金額轉換為大寫函數
明月伴我行 · 2005-08-15 · via 博客园 - 明月伴我行

<%function Money(thenumber)
dim Money,i,String1,String2,length,checkp'定义变量
dim one(),onestr()'定义数组

String1 
= "零壹贰叁肆伍陆柒捌玖"
String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分厘毫"

 checkp=instr(thenumber,".")'判断是否含有小数位
 if checkp<>0 then
 thenumber
=replace(thenumber,".","")'去除小数位
 end if

 length
=len(thenumber) '取得数据长度
 redim one(length-1)'重新定义数组大小
 redim onestr(length-1)'重新定义数组大小

for i=0 to length-1 

   one(i)
=mid(thenumber,i+1,1'循环取得每一位的数字
   one(i)=mid(string1,one(i)+1,1)'循环取得数字对应的大写

   
              
if checkp=0 then  
                                                  
'不含有小数的数据其数字对应的单位
                   onestr(i)=mid(string2,14-length+i,1
                
else
                                               
'含有小数的数据其数字对应的单位
                onestr(i)=mid(string2,15-length+i+len(thenumber)-checkp,1)
                
end if
  
   one(i)
=one(i)&onestr(i)'将数字与单位组合
next

    Money
=replace(join(one)," ",""'取得数组中所有的元素,并连接起来
    Money=replace(Money,"零元",""
    Money
=replace(Money,"零万",""
 Money
=replace(Money,"零亿","亿")
 Money
=replace(Money,"零仟","")
    Money
=replace(Money,"零佰",""
    Money
=replace(Money,"零拾","")

 
do while not instr(Money,"零零")=0 
 Money
=replace(Money,"零零","")
 
loop

response.
write Money  '显示结果
end  function
%
>