Rounds to nearest integral value.
#include <math.h> double rint ( double x);
(IN) Specifies the floating-point value to round.
If successful, returns the integer (represented as a double precision number) nearest x in the direction of the current rounding mode.
If the correct value would cause overflow, a range error occurs.