Round

Round[x]
gives the integer closest to x.

Round[x, a]
rounds to the nearest multiple of a.

DetailsDetails

  • 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.
New in 1 | Last modified in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »