c# - 数字转换为汉字
public static string Convert2Chinese(int input)
{
string ret = null;
int input2 = Math.Abs(input);
string resource = "零一二三四五六七八九";
string unit = "个十百千万亿兆京垓秭穰沟涧正载极";
if (input > Math.Pow(10, 4 * (unit.Length - unit.IndexOf('万'))))
{
throw new System.Exception("the input is too big,input:" + input);
}
Func<int, List<List<int>>> splitNumFunc = (val) => {
int i = 0;
int mod;
int val_ = val;
List<List<int>> splits = new List<List<int>>();
List<int> splitNums;
do
{
mod = val_ % 10;
val_ /= 10