Insert dot symbol into a string number

.net, c#

Solution

You can simply do this:

var text = money.ToString("N0",
    System.Globalization.CultureInfo.GetCultureInfo("de"));

The result is:

1.234.567.890

(I just picked the German culture as I knew they use `.` for the separator.)

Problem

I have int variables, example: ``` int money = 1234567890; ``` How I can insert "." into money, and make its format like this: ``` 1.234.567.890 ```

Original source