rint function

float rint(x)
float[] rint(x)

x floatfloat[]

Returns x rounded to the nearest integer. Integral values remain unchanged. For arrays, the function is applied element-wise and returns a new array with the rounded values.

Related