【问题标题】:Converting number to words in Crystal Reports在 Crystal Reports 中将数字转换为单词
【发布时间】:2012-04-12 19:42:05
【问题描述】:

如何将数字转换为公式中的书面等价物?

例如,10000 转换为 Ten Thousand

【问题讨论】:

    标签: crystal-reports formula


    【解决方案1】:

    您想使用ToWords()ProperCase() 函数。

    //{@Convert}
    // returns Ten Thousand
    ProperCase( ToWords(10000, 0) )
    

    【讨论】:

      【解决方案2】:
      //{@Convert}
      // returns Ten Thousand
      ProperCase( ToWords(20,25000, 0) )
      

      这个节目只有22.5万。

      【讨论】:

        【解决方案3】:

        如果您需要正确的印度格式,如 **40 万 23 000...** 等,请点击链接 https://archive.sap.com/discussions/thread/2030967。请参阅 Balakumar Viswanathan 的评论。它对我有用。

        【讨论】:

          【解决方案4】:
          numbervar x:= int({numberfield});
          numbervar y:= {numberfield}-x);
          if(y>0)then
          propercase("AED "+ ToWords((x),0)+" and"+ToWords((y*100),0)+" Fils Only")
          else
          propercase("AED "+ToWords((x),0)+" Only");
          

          【讨论】:

          • 解释你的答案
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多