private static string ToDecimalStr(string str)
{
string result = string.Empty;
try
{
int strlen = str.Length;
if (strlen == 1)
{
result = Convert.To1Digit(str) + "角";
}
else
{
string tmpstr = str.Substring(0, 1);
result = Convert.To1Digit(tmpstr) + "角";
tmpstr = str.Substring(1, 1);
result += Convert.To1Digit(tmpstr) + "分";
result = result.Replace("零分", "");
result = result.Replace("零角", "");
}
}
catch (Exception ex)
{
Debug.WriteLine("Convert.ToDecimalStr(string) :: " + ex.Message);
throw ex;
}
return result;
}