That code does not convert strings to decimals, I'm looking for a way to extract a double from a string.
Last edited on
You could put that string into a stringstream then treat it like cin and extract the values that way.
Sorry, did not notice that you need to convert from already stored string.
You can use stringstreams:
http://ideone.com/ldzqM2
Last edited on