C # functions converting lowercase amount to uppercase

zhaozj2021-02-16  55

// maximum support 99,999,999.99 yuan

Private string chmoney (Float Money)

{

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

String [] MUNIT = {"Division", "Corner", "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-20370.html

New Post(0)