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