Mathematica 9 is now available

Round

Usage

Round[x] gives the integer closest to x.


Notes

• Mathematical function (see Section A.3.10).
• Examples: Round[2.4]LongRightArrow ; Round[2.6]LongRightArrow ; Round[-2.4]LongRightArrow ; Round[-2.6]LongRightArrow .
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.
• Example: Round[Pi^2]LongRightArrow .
• 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.
• See also: IntegerPart, Floor, Ceiling, Chop.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.