The
ROUND function returns the integer closest to its argument. This value is returned as a longword integer with the same structure as the input argument.
Calling Sequence
Result = ROUND(
X
)
Arguments
X
The value for which the ROUND function is to be evaluated. This value can be single- or double-precision, real or complex floating-point. ROUND returns a longword integer with the same structure as
X
. Note that only the real part of a complex argument is rounded and returned.
Example
To print the rounded values of a 2-element vector, enter: