Function cras::parseDouble(const ::std::string&)
Defined in File string_utils.hpp
Function Documentation
-
double cras::parseDouble(const ::std::string &string)
Parse the given string to a double.
- Parameters:
string – [in] The string to parse.
- Throws:
std::invalid_argument – If the string does not represent a double value or if there are excess characters other than whitespace.
- Returns:
The corresponding double value.