摘要:
float num = 1.123F; string result = num.ToString("0.##"); //1.12 Console.WriteLine(result); result = num.ToString(".##"); //1.12 Console.WriteLine(res 阅读全文
摘要:
float num = 1.123F; string result = num.ToString("0.##"); //1.12 Console.WriteLine(result); result = num.ToString(".##"); //1.12 Console.WriteLine(res 阅读全文
|