HEXAQ : A friendly question - answer site for IT professionals

C# - How to show number with thousand separator?


0

I have data returned from database without any thousand separator.

How can I show them thousand separated.

i.e. 1234567890 should show 1,234,567,890

12345 should show 12,345 and so on..

Â
asked
 


≡ Total 1 Answer

0

Use Object.ToString("n0");

it will convert your number to thousand separated number.

You can visit this site for more available formats

http://msdn.microsoft.com/en-us/library/26etazsy.aspx

Â
replied


Enter your reply here
Answer Preview: