//数字金额宽
public
static
string nst(string t) 
{
if(t.Trim()=="") return "";
//string ms =Regex.Replace(t,"","")
string[] txt = t.Split(new
char[] { '.' }, StringSplitOptions.RemoveEmptyEntries);
while(Regex.IsMatch(txt[0],@"\d{4}(,|$)")) 
{
txt[0] = Regex.Replace(txt[0],@"(\d)(\d{3}(,|$))","$1,$2");
}
if (txt.Length == 1) 
{
return txt[0] + ".00";
}
else

{
return txt[0] +"."+ txt[1].Replace("00","0");
}
//txt[0] = txt[0].replace(/(\d)(\d{3}(,|$))/,"$1,$2");
// t.value = stmp = txt[0]+(txt.length>1?"."+txt[1]:"");
}