I want to add comma to decimal numbers every 3 digits using c#. I wrote this code :
double a = 0; a = 1.5; Interaction.MsgBox(string.Format(\"{0:#,###0}
There is a standard format string that will separate thousand units: N
N
float value = 1234.512; value.ToString("N"); // 1,234.512 String.Format("N2", value); // 1,234.51