nint(3I)
NINT, IDNINT, IQNINT - Converts to nearest integer
As shipped in IRIX 6.5.5. Added in IRIX 6.5.5.
NAME NINT, IDNINT, IQNINT - Converts to nearest integer SYNOPSIS NINT ([A=]a [,[KIND=]kind]) IDNINT ([A=]a) IQNINT ([A=]a) IMPLEMENTATION UNICOS, UNICOS/mk, IRIX systems CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77 STANDARDS Fortran Fortran extension: IQNINT DESCRIPTION NINT is the generic function name; the others are specifics. These are elemental intrinsic functions. They accept the following arguments: a Must be type real. See the RETURN VALUES section for information on input data types and return values. The data type and kind type for single-precision, double-precision, and quad-precision values differ depending on your platform. For platform-specific information, see the TERMINOLOGY section of the INTRO_INTRIN(3I) man page. kind An integer scalar value. Must be a kind type allowed for x. This argument is not accepted by the MIPSpro Fortran 77 compiler. These functions find the nearest integer for real numbers, using these equations: y = INT(x+.5) if x >= 0 y = INT(x-.5) if x < 0 NOTES The NINT and IDNINT intrinsic function names can be passed as arguments; the other cannot. RETURN VALUES NINT returns the nearest integer for its real argument. IDNINT returns the nearest integer for its double-precision argument. IQNINT returns the nearest integer for its quad-precision argument. SEE ALSO Intrinsic Procedures Reference Manual for the printed version of this man page.