locked
Converting number from en-US to fr-FR RRS feed

  • Question

  • User139811673 posted

    If I supress currency symbol

    System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo("fr-FR");
    cultureInfo.NumberFormat.CurrencySymbol = "";

    and convert a number to a French format (fr-FR), it adds a space at the end.

    string convertedNumber = string.Format(cultureInfo, "{0:c}", Convert.ToDouble(55.13));

    = "55,13 "

    Or is there eligent way to supress CurrencySymbol?

     

    Am just curious to know the reason behind this 'single space character'. Actually I have supressed Currency Symbol with no space right?

    Thursday, September 27, 2012 10:40 AM

Answers