Returns the nearest integral value to the argument. This function is supported on OpenVMS Integrity servers and Alpha only. Format #include <math.h> double nint (double x); float nintf (float x,); long double nintl (long double x);
1 – Argument
x A real number.
2 – Description
The nint functions return the nearest integral value to x, except halfway cases are rounded to the integral value larger in magnitude. This corresponds to the Fortran generic intrinsic function nint.
3 – Return Values
n The nearest integral value to x. NaN x is NaN; errno is set to EDOM.