日期:2014-05-18 浏览次数:20786 次
var array = new double[] { 10, 9.4324, 7, 4.5678, 8.4512 }; var result = Array.ConvertAll(array, v1 => v1.ToString("F4")); ------解决方案-------------------- double d = 7; Console.Write(d.ToString("F4"));