
round - rounding a number

Calling sequence:
round(expr)

Parameter:

expr   --  expression

Overloading:

all

Summary:

round rounds a numerical argument that is not a complex number, to the
next integer.  Complex arguments are rounded component for component.
 if the argument cannot be evaluated to a number, round returns the
unevaluated function call. If the argument is not a number, round returns
the unevaluated function call.

If the exponents of real numbers are very large then a call of round can lead
to a loss of accuracy. This is not recognized as an error. round is a converting
function of the kernel.

>>  round(8/3);

      3

>>  round(-2.6);

      -3

>>  round(4/7 - 2.2*I);

      1 - 2*I

See also:  frac, ceil, trunc , floor

