摘要:
1 double t1 = 123.99;2 Console.WriteLine("{0,10}",t1);//空格占位3 Console.WriteLine("{0,-10}",t1);//空格占位向左排列4 Console.WriteLine("{0:C}",t1);//货币格式 Currency5 Console.WriteLine("{0:f1}",t1);//保留一位小数(四舍五入)6 Console.WriteLine("{0:e1}",t1);//科学计数法保留一位小数7 Cons 阅读全文
posted @ 2012-06-12 21:38
2货狗
阅读(86)
评论(0)
推荐(0)
浙公网安备 33010602011771号