Skip to content

IntegerPart

IntegerPart[n] gives the integer part of n

Attributes[IntegerPart] := {Listable, NumericFunction, Protected, ReadProtected}

Simple examples

In[1]:= IntegerPart[-1]
Out[1]= -1
In[2]:= IntegerPart[(3)/(4)*-1]
Out[2]= 0
In[3]:= IntegerPart[(1)/(2)*-1]
Out[3]= 0
In[4]:= IntegerPart[(1)/(4)*-1]
Out[4]= 0
In[5]:= IntegerPart[0]
Out[5]= 0
In[6]:= IntegerPart[(1)/(4)]
Out[6]= 0
In[7]:= IntegerPart[(1)/(2)]
Out[7]= 0
In[8]:= IntegerPart[(3)/(4)]
Out[8]= 0
In[9]:= IntegerPart[1]
Out[9]= 1