Function checkFloat(const std::string&)
Defined in File checkFun.cpp
Function Documentation
-
bool checkFloat(const std::string &input)
Checks if a given string represents a valid floating-point number.
- Parameters:
str – A string representing the number to be checked.
- Returns:
Returns true if the string is a valid float, false otherwise.