aint(3I)

AINT, DINT, QINT - Performs truncation to integer

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

NAME
     AINT, DINT, QINT - Performs truncation to integer

SYNOPSIS
     AINT ([A=]a[,[KIND=]kind])
     DINT ([A=]a)
     QINT ([A=]a)

STANDARDS
     Fortran

     Fortran extension:  QINT

DESCRIPTION
     AINT is the generic function name; the others are specifics.  These
     are elemental intrinsic functions.  They accept the following
     arguments:

     a         Specify a single-precision, double-precision, or
               quad-precision argument.

               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 truncate the fractional parts of their arguments, and
     the fractional parts are lost (not rounded).

NOTES
     The AINT and DINT intrinsic function names can be passed as arguments;
     the other cannot.

RETURN VALUES
     The return values are of type real and have a kind type as specified
     by the kind argument, if present.  If kind is unspecified, the kind
     type is that of a.

     AINT truncates the fractional part of its real argument.

     DINT truncates the fractional part of its double-precision argument.

     QINT truncates the fractional part of its quad-precision argument.

EXAMPLES
     The following examples show the results of calling AINT with positive
     and negative arguments:

     * AINT(3.4) yields 3.0.

     * AINT(-3.4) yields -3.0.