rint function

Syntax

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

Parameters

  1. x—(float, float[])

Returns

The floating point number x, rounded to the nearest integer, or a new array containing rounded integer values of elements of x. Integral values remain unchanged.

Related