I need to write to a CSV file a decimal value with comma instead of decimal point dot
like
12,3
11,9
instead of 12.3 or 11.9
I am reading data from DB as 12.3 but need to write to the CSV file as 12,3.
I’ve tried this so far:
string s = "1.14535765";
var d = Convert.ToDecimal("1.2345", new CultureInfo("es-ES"));
But in the console I can see 12345 without any dot or comma.
I would appreciate any suggestion here. Thanks is advance