double d=32.231323;string str = d.ToString("F2");
输出 32.13;
double d=32.231323;string str = d.ToString("F3");
输出 32.231
double maxSize =235.235635;
string.Format("资源总计{0:F2}K", maxSize )
输出 235.24;