void MainFormLoad(object sender, EventArgs e)
{
this.Text = GetToZHString(1234325.78f);
}
public static string GetToZHString(float value)
{
string str = "";
string[] s = { "分", "角", "元", "十", "百", "千", "万", "十", "百", "千", "亿", "十", "百", "千" };
char[] c = { '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' };
bool b = value < 0;
if (b)
{
value = 0 - value;str = "负";
}
string temp = value.ToString("#0.00").Replace(".", string.Empty);
int count = temp.Length - 1;
for (int i = 0; i <= count; i++)
{
str += c[int.Parse(temp[i].ToString())] + s[count - i];
}
return str;
}