I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator:
\'XXXXXXX (dot) DDDDD\'
The problem with CultureInfo.I
CultureInfo.I
You can simply use decimal.ToString()
For two decimals
myDecimal.ToString("0.00");
For four decimals
myDecimal.ToString("0.0000");
This gives dot as decimal separator, and no thousand separator regardless of culture.