nint(3I)

NINT, IDNINT, IQNINT, ININT, JNINT, KNINT - Converts to nearest integer

As shipped in IRIX 6.5.22. Last changed in IRIX 6.5.19.

NAME
     NINT, IDNINT, IQNINT, ININT, JNINT, KNINT - Converts to nearest
     integer

SYNOPSIS
     NINT ([A=]a [,[KIND=]kind])
     IDNINT ([A=]a [,[KIND=]kind])
     IQNINT ([A=]a)
     ININT ([A=]a)
     JNINT ([A=]a)
     KNINT ([A=]a)

STANDARDS
     Fortran

     Fortran extensions:  IDNINT, IQNINT, ININT, JNINT, KNINT

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 terms single precision, double precision, and quad
               precision 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 a.
               This argument is not accepted by the MIPSpro Fortran 77
               compiler.

     These functions find the nearest integer for real numbers, using these
     equations:

     * If a >= 0, y = INT(a+.5).

     * If a < 0, y = INT(a-.5).

NOTES
     The NINT and IDNINT intrinsic function names can be passed as
     arguments; the others 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.

     ININT returns an integer (KIND=2) for its real argument.

     JNINT returns an integer (KIND=4) for its real argument.

     KNINT returns an integer (KIND=8) for its real argument.