Integer or decimal

How can you tell rfom a variable if the number it is holding is a whole number or its holding a decimal number


var num=55.234;

How can I check to see if variable num is 55.234 or if it is 55