This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Round

Round[x]
gives the integer closest to x.
Round
rounds to the nearest multiple of a.
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • Round rounds numbers of the form x.5 toward the nearest even integer.
  • Round[x] returns an integer when x is any numeric quantity, whether or not it is an explicit number.
  • For exact numeric quantities, Round internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
  • Round applies separately to real and imaginary parts of complex numbers.
  • Round automatically threads over lists.
Round to the nearest integer:
Round to the nearest multiple of 10:
Round to the nearest integer:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
 
Round to the nearest multiple of 10:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Use exact numeric quantities:
Round threads element-wise over lists:
Round to the nearest multiple of :
Manipulate Round symbolically:
Evaluate an integral:
Complex numbers:
Compute Fibonacci numbers:
Negative numbers also round to the nearest integer:
At midpoints, Round rounds towards even integers:
Round does not automatically resolve the value:
New in 1 | Last modified in 6