int a = 10000000; a.ToString();
How do I make the output?
10,000,000
a.ToString("N0")
See also: Standard Numeric Formatting Strings from MSDN
a.tostring("00,000,000")
Try N0 for no decimal part:
N0
string formatted = a.ToString("N0"); // 10,000,000