Console.WriteLine(String.Format("{0:n}", 1285534.45));
1,285,534.45
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)