Is there a better way to test if a double has decimal digits than this?
double value = 7.2;
bool isInt = value == double(round(value));
BTW: I use C++ 11 and gcc AND MSVC2015
Is there a better way to test if a double has decimal digits than this?
double value = 7.2;
bool isInt = value == double(round(value));
BTW: I use C++ 11 and gcc AND MSVC2015