Can't convert currency Culture Info

Looks like you will need to work on your CultureInfo a bit. See here:

  1. First initialize your CultureInfo variable:
    nfi = new CultureInfo("pt-pt")
    It should be of type:

  2. Then, assign these:

    nfi.NumberFormat.NumberGroupSeparator = "."
    nfi.NumberFormat.NumberDecimalSeparator = ","
    
    
  3. Finally, do your conversion:

    Decimal.Parse("1.000,00", nfi).ToString
    

    It returns:
    image

Here it displayed it as 1000.00, but that can be fixed by adding your culture to the ToString of the Write Line:

Decimal.Parse("1.000,00", nfi).ToString(new CultureInfo("pt-pt"))

image

4 Likes