《编程知识总结》15—c#中数字金额转换大写金额方法(Summary of programming knowledge 15 - c# in the amount of digital conversion of the amount of money method).docVIP
- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
《编程知识总结》15—c#中数字金额转换大写金额方法(Summary of programming knowledge 15 - c# in the amount of digital conversion of the amount of money method)
《编程知识总结》15—c#中数字金额转换大写金额方法(Summary of programming knowledge 15 - c# in the amount of digital conversion of the amount of money method) The main function of the code is ConvertSum, and its parameter is a numeric string of type string. In ASP.NET, the following is called: Label1.Text=ConvertSum (string of numbers); The code is as follows: The main function of digital conversion / / / amount (including decimal) X Digital public string After the Chinese converted to uppercase x string or an error message string Public string ConvertSum (string STR) { If (... IsPositveDecimal (STR)) Return entered is not a positive number! ; If (Double.Parse (STR) 999999999999.99) Return the figures are too large to convert. Please enter the amount under $one trillion.; Char[] ch=new char[1]; Ch[0]=.; / / decimal point String[] splitstr=null; / / defined by an array of string segmentation after the decimal point Splitstr=str.Split (ch[0]); / / according to the decimal point string segmentation If (splitstr.Length==1) / / only integer part Return ConvertData (STR) + rounding; Else / / have a decimal portion { String rstr; Rstr=ConvertData (splitstr[0]) + circle; / / convert integer part Rstr+=ConvertXiaoShu (splitstr[1]); / / convert decimal part Return rstr; } } X To determine whether the digital string is always X Public string judgment Return true / / / if it is digital, and false otherwise. Public bool IsPositveDecimal (string STR) { Decimal d; Try { D=Decimal.Parse (STR); } Catch (Exception) { Return false; } If (d0) Return true; Else Return false; } X Public switched digital (integer) X Just need to convert a string of integer numbers Just after the capital is converted to a string of Chinese Public string ConvertData (string STR) { String tmpstr=; String rstr=; Int strlen=str.Length; If (strlen=4) / / digital length is less than four { Rstr= ConvertDigit (STR); } Else { If (strlen=8) / / digital length is greater than four, less than eight { Tmpstr=str.Substring (strlen-4,4); / / t
您可能关注的文档
- 009妊娠时限限制(009 limitation of pregnancy time).doc
- (would) rather than用法((会)而不是用法).doc
- 02-4走遍美国mp3文本(02-4 travels through the United States MP3 text).doc
- (一)`探索分数的乘法公式((I) ` exploring the multiplication formula of fractions').doc
- (腰腹肌)健身轮的使用方法((waist, abdominal) fitness wheel using method).doc
- -[吉他教学]吉它入门(- Guitar Guitar entry]).doc
- 06 拟副交感神经药(06 pseudo parasympathetic drugs).doc
- 06版小龙女——最得原著神韵的小龙女(The 06 edition of Little Dragon Girl - the most original charm of Little Dragon Girl).doc
- 07年工程心理学试卷(07 year engineering psychology test paper).doc
- 09抚顺中考英语(09 Fushun test English).doc
- 【sj】13只王子的奇怪习惯([SJ] the strange habits of the 13 princes).doc
- 《真情的回报》教学设计(The teaching design of return of true feelings).doc
- 《苦寒行》(Cold).doc
- 《被物价支配的经济史》第1章之通货膨胀和通货紧缩(Inflation and deflation in the first chapter of the economic history dominated by prices).doc
- 【★☆★金庸笔下武功最强的十人★☆★】([ 10 the strongest martial arts under the pen of Jin Yong]).doc
- 【免费,方便手机浏览。txt】教你一眼认出英语单词的意思([free, easy mobile browsing. Txt] teach you the meaning of an English word at a glance).doc
- 【公民话改革】市场经济之我见-市场经济新认识论(My view on market economy [citizen speech reform] new theory of market economy).doc
- 【养生】 生理期是女孩变美的黄金期[女生必看,男生为了老婆也要转]([health] physiological period is the golden phase of girls become beautiful [girls must see, boys for wife also want to turn]).doc
- 【地理】向斜与背斜(Syncline and anticline).doc
- 【摘要】当前,大学生就业困难的一个主要原因就在于,毕业生个体的就业(Abstract at present, one of the main reasons for the difficulty of College Students' employment is the employment of graduates).doc
最近下载
- 职业选择与生涯发展(同名27124).doc VIP
- FIDIC合同条件下竣工结算审计.pdf VIP
- 长期健康团体医疗保险产品介绍.ppt VIP
- 2025-2026秋学生国旗下演讲稿(20周):第十一周让诚信的光与友善点亮童年——爱身边每个人--养成教育.docx
- (高清版)B/T 42594-2023 承压设备介质危害分类导则.pdf VIP
- GB+18613-2020电动机能效限定值及能效等级.docx VIP
- 点 江西省临川第一中学2024—2025学年上学期期中考试八年级数学试卷(原卷版).docx VIP
- 文物建筑勘查设计取费标准(2020版)(试行).pdf VIP
- 2024年重庆市农业农村委机关及所属参公单位遴选公务员笔试真题及答案.docx VIP
- 原子物理学全本课件(褚圣麟,第一至第十章全部课件).pptx VIP
有哪些信誉好的足球投注网站
文档评论(0)