string - Format a double value like currency but without the currency sign (C#) -


I have a text box with a string value feed that shows me a balance that needs to be formatted as follows: / P>

  ###, ###, ###, ###  

I can use the price. Toastring ("c"), but it will put currency sign in.

Any idea that I will manipulate the string before feeding the text box to achieve the given formatting?

I tried, without success:

  string.format ("###, ###, ###, ## 0.00", Current Balance) ;  

Many thanks,

  for display = currentBalance .ToString ("N2");  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -