摘要:
inta=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(&quo 阅读全文
摘要:
C 货币2.5.ToString("C")¥2.50D 十进制数25.ToString("D5")00025E 科学型25000.ToString("E")2.500000E+005F 固定点25.ToString("F2")25.00G 常规2.5.ToString("G")2.5N 数字2500000.ToString("N")2,500,000.00X 十六进制255.ToString("X")FFformatCode 是可选的格式化代码字符串。(详 阅读全文