carb::options::stringToNumber

Defined in carb/extras/Options.h

template<>
inline bool carb::options::stringToNumber(const char *string, double *value)

Converts a string to a number.

Parameters
  • string[in] The string to convert.

  • value[out] Receives the converted value of the string if successful.

Returns

true if the string is successfully converted to a number.

Returns

false if the string could not be fully converted to a number.