is.wholenumber function

Function to check if a number is a whole number