Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Numerical Functions >

Round

Round[x]
gives the integer closest to x.
Round[x, a]
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:
Use exact numeric quantities:
Round threads element-wise over lists:
Round to the nearest multiple of pi/2:
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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team