public string ConvertToCurrency(double strTemp) { return strTemp.ToString("N", NumberFormatInfo.CurrentInfo); }
int i = 963258741; string a= i.ToString("#,##0");
自己算........呵呵 变态 string xx = TextBox1.Text; int i = xx.Length % 3; int q = 0; foreach (char x in xx) { q++; Response.Write(x.ToString()); if (q%3==i &&q!=xx.Length) { Response.Write(","); } }
{
return strTemp.ToString("N", NumberFormatInfo.CurrentInfo);
}
string a= i.ToString("#,##0");
string xx = TextBox1.Text;
int i = xx.Length % 3;
int q = 0;
foreach (char x in xx)
{
q++;
Response.Write(x.ToString());
if (q%3==i &&q!=xx.Length)
{
Response.Write(",");
}
}