double StringToDouble(string str){
double num_front = 0,num_end=0;
int temp;
for(int i = 0;i<str.length();i++){
if(str[i]=='.'){
temp = i;
break;
}
num_front*=10;
num_front+=(str[i]-'0');
}
int count = 1;
for(i = temp+1;i<str.length();i++){
num_end+=(str[i]-'0')/(pow(10,count));
count++;
}
num_front+=num_end;
return num_front;
}