Skip to content

IntegerQ

IntegerQ[e] returns True if e is an Integer, False otherwise.

Attributes[IntegerQ] := {Protected}

Simple examples

In[1]:= IntegerQ[a]
Out[1]= False
In[2]:= IntegerQ[1]
Out[2]= True
In[3]:= IntegerQ[2.]
Out[3]= False