Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果可以避免,尽量避免重新发明轮子。是否有一些我还没有找到的特殊方法可以用来将货币格式的小数转换为等值的文本?
最好的例子,当您签署一张支票并说您投入了 1,234.56 美元(StringFormat C)时,我可以获取该值并将其转换为“一千二百三十四五十六美分”作为支票吗?
我环顾四周,没有发现任何东西,如果可以避免的话,真的希望不要浪费很多时间。干杯
也许这是一个很好的起点。
http://robertgreiner.com/2011/08/numbertext-converting-numbers-into-words-in-csharp/