4.2 Numerical Functions
Some numerical functions of real variables.
Round[x], Floor[x] and Ceiling[x] can all be considered to give versions of the integer part of x.
In[1]:= x = 2.3; {x, Round[x], Floor[x], Ceiling[x]}
Out[1]=
This gives the fractional parts of the numbers in the list .
In[2]:= w = {3, 2.7, 4.2}; w - Floor[w]
Out[2]=
This gives the least and the greatest numbers in .
In[3]:= {Min[w], Max[w]}
Out[3]=