Rounds a floating-point number to an integer in the floating-point representation according to the current rounding direction.
long double nearbyintl(long double d);
d Value to be rounded to an integer in the floating-point format
d rounded to an integer in the floating-point format
The nearbyint function group does not generate "inexact" floating-point exceptions.