Question: I have a number like `202667.4`. I want to convert this to number *based on culture*.

For Ex:

> 
> In "de"(German) the number should be in **202.667,40**.
> 
> 
> 

Any help will be greatly appreciated.

Thanks.

Answer: 
You can use Culture info while parsing number into German format

Try with this approach:

```
string.Format(System.Globalization.CultureInfo.GetCultureInfo("de-DE"), "{0:000,000.00}", <your number>)

```

for example:

```
 string result = string.Format(System.Globalization.CultureInfo.GetCultureInfo("de-DE"), "{0:000,000.00}", 202667.4)

```
You can use this code to convert variables to different cultures:

```
int MyInt = 100;
string MyString = MyInt.ToString("C",CultureInfo.GetCultureInfo("de-DE"));
MessageBox.Show(MyString);

```

If you want to build all programs with a German format you can this code at your main class:

```
using System.Globalization;`

Application.CurrentCulture = CultureInfo.GetCultureInfo("de-DE");`

```