Convert the amount to the uppercase function

zhaozj2021-02-16  49

// maximum support 99,999,999.99 yuan

Private string chmoney (Float Money)

{

String [] mchar = {"zero", "", "", "", "", "Wu", "Lu", "柒", "捌", "玖"}

String [] munit = {"points", "angle", "yuan", "pick", "", "仟", "10,000", "", ""}

String strmoney = ((long) (Money * 100)). TOSTRING ();

String Outmoney = "";

For (int i = 0; i

{

Outmoney = mchar [int.Pars (Strmoney.Substring (i, 1))] MUnit [Strmoney.Length - i - 1];

}

Return Outmoney;

}

转载请注明原文地址:https://www.9cbs.com/read-20364.html

New Post(0)