double test = 123456.123;
 Console.WriteLine(test.ToString("###,###.000"));
//结果:123,456.123


本文转载:CSDN博客