2009年4月22日

数字格式化

摘要: int a = 12345678; //格式为sring输出 Label1.Text = string.Format("asdfadsf{0}adsfasdf",a); Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf"; Label1.Text = string.Format("asdfadsf{0:C}adsfasdf",a);//asdfadsf¥1,234.00adsfasdf Label2.Text = "asdfadsf"+a.ToString("C")+"adsfasdf";//asdfadsf¥1,234.00adsfasdf double b = 1234.12543; int a = 12345678; 阅读全文

posted @ 2009-04-22 09:59 冬日阳光 阅读(218) 评论(0) 推荐(0) 编辑

导航