본문 바로가기

ASP.NET

asp.net- 숫자 자릿수 콤마찍기

int testNum = 1000;
testNum  = String.Format("{0:n0}", testNum );
Response.Write(testNum);

예상되는 출력: 1,000