Round to Integer

Syntax


n = round(x)

Description


Rounds the passed argument to the nearest integer, with ties rounding up.

Example


k = round(10.0*cos(t))) ! k is an integer