Contents | Previous | Next | Subchapters |

Syntax |
`round(` x`)` |

See Also | roundoff , ceil , floor , int , mod |

Returns the element-by-element closest integer value to

`round`

function applies to the real and
imaginary parts separately.
```
```

y = [ -1.4, -.6, 1.4, 2.]

round(y)

returns
```
```

[-1 , -1 , 1 , 2]

Note that

`round`

returns a matrix
the elements of which are equal to integers,
but the return value has the same type as In Mlmode ,