The formatting tone for the decimal place in .NET is ".". regardless of the culture that the assembly uses, and "," for the thousandth separator. However, different cultures (e.g. France) use "," for decimals, so this may be a problem to consider.
Here are some examples (C #):
C
£N
£#,#
double x = 67867987.88666;
Console.WriteLine("{0:C}",x);
Console.WriteLine("£{0:N}", x);
Console.WriteLine("£{0:#,#.###}", x);
Output:
£67,867,987.89
£67,867,987.89
£67,867,987.887
More details here .
source
share