The rint() function returns the integral value (represented as a double) nearest x in the direction of the current IEEE754 rounding
mode.
If the current rounding mode rounds toward negative infinity, then rint() is identical to floor(3M). If the current rounding mode rounds toward positive infinity, then rint() is identical to ceil(3M).
Upon successful completion, the rint() function returns the integer (represented as a double precision number) nearest x in the direction of the current
IEEE754 rounding mode.