int a = 10000000; a.ToString();
How do I make the output?
10,000,000
Try N0 for no decimal part:
N0
string formatted = a.ToString("N0"); // 10,000,000