您的位置:首页 > 编程语言 > C#

数据格式化显示

2012-03-28 17:33 155 查看
 

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#显示格式化     http://blog.csdn.net/liumyua/article/details/1916749
 

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

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

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  c#