Converting strings into doubles

Hi everyone,

I know this might come over (or it might not come over) as a simple question, but how can i convert to contents of a string object to a double (or any kind of number object)?

string myString = "53.4"
double myDouble = myString = 53.4

something similar to the above will generate an error instead of overloading it to make it able to convert.
Thanks i'll look at it later, and i'm sorry if i bother you if i'm just one of many who asks
Last edited on
1
2
string y = "69";
double x = strtod(y.c_str());


i think thats it, but i might have just made that up.
Topic archived. No new replies allowed.