lblCorrectRate.Text =(iCorrectCount * 1.0 / lstSentence.Count ).ToString("P2");//百分比
lblScore.Text = (iCorrectCount * 100.0 / lstSentence.Count).ToString("F2"); // 2位小数
string.Format("{0:N2}", decimal.Parse(row["Happen"].ToString())); // 千分位显示,2位小数

 

 

C#小Tip:数字格式化显示   ​​ http://www.alixixi.com/Dev/Web/ASPNET/aspnet3/2007/2007050734453.html​


C#显示格式化 

C#格式化显示string.Format     ​​ http://www.doc88.com/p-39997966682.html​


C#获取当前时间的各种格式 ​​http://wenku.baidu.com/view/7710915e804d2b160b4ec03c.html​