SoFunction
Updated on 2025-03-06

C# implements the method of converting lowercase to uppercase

This article describes the method of converting lowercase to uppercase C# into C. Share it for your reference, as follows:

#region [Convert lowercase to uppercase] MoneySmallToBig/// <summary>
/// Convert lowercase to uppercase/// </summary>
/// <param name="par">Lowercase amount</param>/// <returns>Capacity amount after processing</returns>public static string MoneySmallToBig(string par)
{
  String[] Scale = { "point", "horn", "Yuan", "pickup", "Bai", "thousand", "Ten thousand", "pickup", "Bai", "thousand", "100 million", "pickup", "Bai", "thousand", "mega", "pickup", "Bai", "thousand" };
  String[] Base = { "zero", "one", "two", "Three", "Si", "Wu", "land", "Qi", "eight", "Nine" };
  String Temp = par;
  string result = null;
  int index = (".", 0, );//Judge whether there is a decimal point  if (index != -1)
  {
    Temp = (("."), 1);
    for (int i = ; i &gt; 0; i--)
    {
      int Data = Convert.ToInt16(Temp[ - i]);
      result += Base[Data - 48];
      result += Scale[i - 1];
    }
  }
  else
  {
    for (int i = ; i &gt; 0; i--)
    {
      int Data = Convert.ToInt16(Temp[ - i]);
      result += Base[Data - 48];
      result += Scale[i + 1];
    }
  }
  return result;
}
#endregion

PS: Here is another conversion tool for your reference:

RMB capitalization online conversion tool:
http://tools./zhuanhuanqi/rmbupper

For more information about C# related content, please check out the topic of this site:Summary of C# form operation skills》、《Tutorial on the usage of common C# controls》、《Summary of WinForm control usage》、《Summary of thread usage techniques for C# programming》、《Summary of C# operation skills》、《Summary of XML file operation skills in C#》、《C# data structure and algorithm tutorial》、《Summary of C# array operation skills"and"Introduction to C# object-oriented programming tutorial

I hope this article will be helpful to everyone's C# programming.