这似乎完全符合您的要求:
public void Code(params string[] args) { Print(1000); Print(100000); Print(123.456); Print(100000.21 ); Print(100200.123456); } void Print(double n) { Console.WriteLine("{0:###,###.#######}", n); } 1,000 100,000 123.456 100,000.21 100,200.123456