'format'에 해당되는 글 1건

  1. 2011.12.13 [wp7] 화페 단위 변환하기
Windows Phone 72011. 12. 13. 11:11

 

public static string MoneyConvert(string money)
       {
           int result = Convert.ToInt32(money);
           return String.Format("{0:#,0}원", result);
       }

결론은 이렇고

string format 할때 N 이나 C를 쓰게 되면

 

53,900.00 원이렇게 나오기 때문에

 

이렇게 하는게 최선인듯

Posted by 동동(이재동)