摘要:C#常用數字格式化寫法
int i;
string a;
i = 1000000000;
數字含逗號:
a = i.ToString("#,0");
/* a = 1,000,000,000 */
金額(小數兩位含逗號外加dollar sign):
a = i.ToString("C2");
/* a = NT$1,000,000,000.00 */
參考 http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.aspx