c# 数字转字符串保留两位小数
摘要:
double a = 123456, b = 123456.1, c = 123456.12, d = 123456.123, e = 123456.126; Console.WriteLine(a.ToString("N")); //123,456.00 Console.WriteLine(b.ToString("N")... 阅读全文
posted @ 2018-10-20 10:53 HotSky 阅读(14301) 评论(0) 推荐(2) 编辑