如何转换字符串中的数字? [英] How to Convert Numbers in string ?
本文介绍了如何转换字符串中的数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
在我的应用程序中,我要求如果假设我键入数字
例如1978 会自动将其转换为字符串例如1000
九洪德七十八.但是我对此一无所知.
任何人都可以建议我如何执行此任务:omg:
Hello
In my application i have requirement that if suppose i type number
e.g. 1978 it converts automatically in string e.g One Thousand
Nine Hundread Seventy Eight. but i havn''t any idea about this.
any one please suggest me how to do this task :omg:
推荐答案
这里是一种方法:http://www.blackwasp.co.uk/NumberToWords.aspx [ ^ ].
(不要担心它是C#,易于转换为VB).
谷歌搜索/binging时有很多示例.
干杯
Here''s one way : http://www.blackwasp.co.uk/NumberToWords.aspx[^].
(don''t be frightened that it C#, easy to convert to VB).
There are loads of examples to be found when googling/binging.
Cheers
这篇关于如何转换字符串中的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文