Function cras::parseFloat(const char *)
Defined in File string_utils.hpp
Function Documentation
-
inline float cras::parseFloat(const char *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.