Tests if an expression is a whole number.
Returns TRUE if the expression pointed to by ptr is a whole number (it can be a floating-point value).