Round to nearest integer.

numThe input.
return valueThe input rounded to the nearest integer.

If the floating point part is greater or equal than .5, the number will be rounded to higher, otherwise to lower nearest integer value.

The argument can be a real or complex number or a matrix. In case of complex numbers, the real and imaginary parts are handled separately. In case of matrices, the computation is elementwise.

Quantities are not suppored by this function.