Use std::strtod for string to double conversion.