For Example : I input 122333 Output must be: 122,333.00
string a; double bb = double.Parse(textBox1.Text); a = Double.ToString("#,0.##");
string a; double bb; if (!double.TryParse(textBox1.Text, out bb)) { // Report a problem to the user. ... } else { a = bb.ToString("#,000.00"); ...
string.Format("{0:n0}", bb);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)