c# string format issue
- by Kamal
Hi guys
I need to convert a string to a monetary format of {###}.###.###,##
that is
a value of 5461497702600
would become
54.614.977.026,00
The numbers become excessively large.
I am using
return string.Format(string.Format("{0:#" + (val < 1000 ? "" : "\\.") + "##0.00}", val));
which returns for the example
54614977.026,00
(only one dot)
Any help would be appreciated