double类型如何保留2为小数时间:2023-03-09 23:53:27 double d=12.2121;string str = d.ToString("F2"); double x = 29.982;Console.WriteLine(x.ToString(".00"));