is.wholenumber function

Check if a variable is a whole number