C# 保留小数点后面两位方法
摘要:1、num.ToString("#0.00"); //点后面几个0就保留几位 double num=0.121245;string result=num.ToString("#0.00"); //点后面几个0就保留几位Console.WriteLine(result)。 2、num.ToString
        阅读全文
				
		posted @ 2022-11-30 10:17
		
		posted @ 2022-11-30 10:17
		
		posted @ 2022-11-17 12:00
		
		posted @ 2022-11-10 16:44
		
		posted @ 2022-11-10 11:36
		
		posted @ 2022-11-10 09:50