INT(A, KIND)

Purpose

Convert to integer type.

Class

Elemental function

Argument Type and Attributes

A
must be of type integer, real, or complex.

KIND (optional)
must be a scalar integer initialization expression.

Result Type and Attributes

Result Value

Examples

INT (-3.7) has the value -3.


Specific Name Argument Type Result Type Pass As Arg?
INT default real default integer no
IDINT double precision real default integer no
IFIX default real default integer no
IQINT (1) REAL(16) default integer no

Notes:

  1. IBM Extension.

Related Information

For information on alternative behavior for INT when porting programs to XL Fortran, see the -qport compiler option in the XL Fortran User's Guide. IBM Copyright 2003