Q:

C# - show culture on numbers

I want to show culture on integers, but "n" number format gives me double format output.
Here is a small example
int i = 10000;
Console.WriteLine(i.ToString("n", CultureInfo.CreateSpecificCulture("en-US")));

This gives me out put as 10,000.00
I want output as 10,000
Workaround like modifying string is not what I need.
Is there any simple way to do this? 

A:

use n0 instead of n in the format. 
int i = 10000;
Console.WriteLine(i.ToString("n0", CultureInfo.CreateSpecificCulture("en-US")));

Output would be:
10,000

Or you can use:
Console.WriteLine(i.ToString("N0"));

You may see: Standard Numeric Format Strings
The Numeric ("N") Format Specifier.

The numeric ("N") format specifier converts a number to a string of
  the form "-d,ddd,ddd.ddd…", where "-" indicates a negative number
  symbol if required, "d" indicates a digit (0-9),

By the way "N" or "n" are same

A:

Console.WriteLine("{0:n0}",i, CultureInfo.CreateSpecificCulture("en-US"));

or closer to your original
Console.WriteLine(i.ToString("n0"), CultureInfo.CreateSpecificCulture("en-US"));

Live example: http://rextester.com/MDJI27648

