Define a int variable.
Then set the ints value to the value of the variable you want to check, after that compare the two values. If the value is not an integer, they will not be the same.

This code will give you a warning such as: "warning: converting from 'double' to 'int', possible loss of data." or such.