is_whole_number function

Check whether a numeric vector contains whole numbers.