INT(A, KIND)

Purpose

Convert to integer type.

Class

Elemental function

Argument type and attributes

A
An INTENT(IN) INTEGER, REAL, COMPLEX, or boz-literal CONSTANT
KIND (optional)
An INTENT(IN) INTEGER scalar. The actual argument corresponding to KIND must be a constant expression.Fortran 2003 ends

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
Note:
  •  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 Compiler Reference.