Files
42_INT_09_piscine_cpp/d06/ex00/srcs/checkFloat.cpp
2022-03-07 15:16:05 +01:00

31 lines
448 B
C++

#include <iostream>
#include <string>
#include <cctype> // isdigit()
#include "color.h"
//Char toChar(str) {
//
//}
bool isFloat(std::string str) {
if (str.length() == 4)
return true;
return false;
}
bool checkFloat(std::string str) {
// float f;
std::cout << "in char\n";
if (!isFloat(str))
return false;
// f = toFloat(str);
// std::cout << "float"RESET" equal to : "B_CYAN << f << RESET << "\n";
// fromFloat(f);
return true;
}