A Programmer`s Summary Note
Oct 8, 2013
[C#] How to add comma to numbers
int nNum = 123456;
string strNum = nNum.ToString("#.##0");
Then you will have "123,456".
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment