0

I'm working on a C# application that I run on raspberry pi with mono.

I would like to convert a double A = 0.05 to a double B = 0,05.

I succesfully did it on my computer, I changed my Number Decimal Separator for this application and it works very well, but once I try it on the Raspberry pi, it do not work.

            //Changing the decimal separator           
            CultureInfo culture;
            culture = (CultureInfo)Application.CurrentCulture.Clone();
            culture.NumberFormat.NumberDecimalSeparator = ".";
            Application.CurrentCulture = culture;

I think that on the raspberry, I can't read the CultureInfo property, I tried to change the langage from fr-FR to en-US but it didn't work...

Have you any idea which could help me ?

Macronaute
  • 31
  • 4

0 Answers0