【问题标题】:How can I display money amounts in word form? [duplicate]如何以 word 形式显示金额? [复制]
【发布时间】:2010-10-14 13:33:31
【问题描述】:

谁能帮我在VB.NET 中制作一个货币面额程序。 问题是当您输入一个数字时,程序应该将其转换为 word 格式。

如果你输入

'98534671.23' 

程序应将其转换为

"ninety eight million five hundred thirty four thousand six hundred 
seventy one and twenty three cents".

另见

How can I convert an integer into its verbal representation?

【问题讨论】:

  • 我不知道是否投票关闭或不看到前面的欺骗示例是针对 C# 而不是 VB.NET。我知道您可以轻松地在两者之间进行翻译,但我不知道这是否可以被视为完全欺骗。
  • 另外,其他帖子不考虑小数点后的部分(美分)。

标签: vb.net


【解决方案1】:

Convert integers to written numbers

您应该能够使用此主题来帮助您。您所要做的就是将代码从 C# 转换为 VB.NET

【讨论】:

    猜你喜欢
    • 2018-11-04
    • 2013-12-06
    • 1970-01-01
    • 2017-01-13
    • 2020-07-07
    • 2019-03-01
    • 2019-09-13
    • 2021-09-04
    • 1970-01-01
    相关资源
    最近更新 更多