自造轮子:C#中数字转中文(繁体可自行更换)
using System;
namespace MindStdio
{
class NumberLibrary
{
//千亿内的整型数值转化为中文数字
public static string LongBecomeText(long number)
{
string result = "";
string text = number.ToString();
if (Math.Abs(number).ToString().Length > 12)
{
return "参数过大!";
}
if (number == 0)
{
return "零";
}
else if (number < 0)
{
result += "负";
text = Math.Abs(number).ToString()