My problem is the following. I try to convert a string into double. In this way:
string str = "1.1";
double d = atof(str.c_str());
But this don't work, it simply return 1;
But if I try:
string str = "1,1";
double d = atof(str.c_str());
it return 1.1.
That is really weird. Seems it can only understand the number if I write a "," but return as a ".".
Any idea how could I solve this to convert "1.1" as well?