is_wholenumber function

Test for whole numbers (i.e., integers).