Round to nearest decimal or integer

`Y = round(`

rounds
each element of `X`

)`X`

to the nearest integer. In the
case of a tie, where an element has a fractional part of exactly `0.5`

,
the `round`

function rounds away from zero to the
integer with larger magnitude.

Was this topic helpful?