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