FractionalPart
FractionalPart[n]
gives the fractional part of n
Attributes[FractionalPart] := {Listable, NumericFunction, Protected, ReadProtected}
Simple examples
In[1]:= FractionalPart[-1]
Out[1]= 0
In[2]:= FractionalPart[(3)/(4)*-1]
Out[2]= (3)/(4)*-1
In[3]:= FractionalPart[(1)/(2)*-1]
Out[3]= (1)/(2)*-1
In[4]:= FractionalPart[(1)/(4)*-1]
Out[4]= (1)/(4)*-1
In[5]:= FractionalPart[0]
Out[5]= 0
In[6]:= FractionalPart[(1)/(4)]
Out[6]= (1)/(4)
In[7]:= FractionalPart[(1)/(2)]
Out[7]= (1)/(2)
In[8]:= FractionalPart[(3)/(4)]
Out[8]= (3)/(4)
In[9]:= FractionalPart[1]
Out[9]= 0