I am trying to format a double to a string format which contains thousands separators and all trailing decimal numbers in german number format. But I can’t get it to work (am I really that foolish?).
What I want is the following:
Input: double doubleVal = 123456.789;
Output: 123.456,789
I already used NumberFormats and other stuff but I don’t get what I want. Can somebody please help?
I’d expect you should be able to do it with:
… specifying the German culture if it’s not the thread’s current culture.
Sample:
Note that the 3 specifies the number of digits after the decimal point.