|
Contents | Previous | Next | Subchapters |
| Syntax |
round(x) |
| See Also | roundoff , ceil , floor , int , mod |
round function applies to the real and
imaginary parts separately.
y = [ -1.4, -.6, 1.4, 2.]
round(y)
returns
[-1 , -1 , 1 , 2]
round returns a matrix
the elements of which are equal to integers,
but the return value has the same type as x.
The function roundoff
returns a
matrix that has the integer type.