I got a string that contains numbers let's say "1.54251"
I want to convert this string to double because I want to do some operations on that number
I tried normal casting but didn't work.
I remember something about type_cast but I can't get it to work.
Can anyone help me with this ?
EDIT: I tried this
and I got thisQuote:
Error 1 error C2440: 'static_cast' : cannot convert from 'std::string' to 'double'