VMS Help
CRTL, nint
*Conan The Librarian
|
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);
x
A real number.
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.
n The nearest integral value to x.
NaN x is NaN; errno is set to EDOM.