Function cras::parseDouble(const char *)

Function Documentation

inline double cras::parseDouble(const char *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.