Function novatel_gps_driver::ParseFloat(const std::string&, float&)

Function Documentation

bool novatel_gps_driver::ParseFloat(const std::string &string, float &value)

Parses a string containing a floating-point number into a float.

Parameters:
  • string – The string to read, i.e. “5.0”

  • value – A float representing the value from the strong.

Returns:

False if the format of the string was not recognized.