Decimal to Binary

I know how to make a decimal to go binary. However, how would i check if a variable is a whole number?

Do you mean does it contain a fractional part?

Thank you for your comment. It lead me to some insight in which i figured out my problem. Thank you

No problem! Good luck!