aint(3I)
AINT, DINT, QINT - Performs truncation to integer
As shipped in IRIX 6.5.15. Added in IRIX 6.5.5.
NAME AINT, DINT, QINT - Performs truncation to integer SYNOPSIS AINT ([A=]a[,[KIND=]kind]) DINT ([A=]a) QINT ([A=]a) IMPLEMENTATION UNICOS, UNICOS/mk, IRIX systems CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77 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 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 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) = 3.0 AINT(-3.4) = -3.0 SEE ALSO Intrinsic Procedures Reference Manual for the printed version of this man page.