Function hardware_interface::stof

Function Documentation

float hardware_interface::stof(const std::string &s)

Helper function to convert a std::string to float in a locale-independent way.

Throws:

std::invalid_argument – if not a valid number or exceeds limits