Whole numbers

Is there a piece of code to test if a varibale is a full number?

var myVar:Number = 5

if(myVar == [wholeNumber]){

trace(“yay”);

}

My thanks

Stupidsaint