asking about if

Hi. I just begin studying C++. I need some helps with my code. I want to write thing like this: if x1 or x2 are integer ( double x1, x2 before) cout >> "....", but I do not know how to set if x1 or x2 are integer. pls help
Do you know to know whether a floating-point value is a whole number?
Topic archived. No new replies allowed.