static string myformat(double[] array)
{
StringBuilder sp = new StringBuilder();
foreach (double d in array)
sp.Append(d.ToString().PadRight(19));
return sp.ToString();
}
//示例
double[] num = new double[] { 1234.345, 2341.213, 3213.123, 2314.123 };
string str = myformat(num);//就这是格式化后的行