[C#]숫자 콤마 찍기
소스 int currency= 123456890; Console.WriteLine(string.Format("{0:n0}", currency)); Console.WriteLine(string.Format("{0}", currency.ToString("n0"))); ; Console.WriteLine(string.Format("{0:#,##0}", currency)); Console.WriteLine(string.Format("{0}", currency.ToString("#,##0"))); 실행결과 //결과 //123,456,890 //123,456,890 //123,456,890 //123,456,890