static float rint(float a)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns the float value that is closest in value to a and is equal to a mathematical integer. If two float values that are mathematical integers are equally close to the value of the argument, the result is the integer value that is even.
Note
Example
Draw.writeText("data: " + Math.rint(9.23f));
The example above draws the calculated value to the screen.