INT(A, KIND)

Purpose

Convert to integer type.

Class

Elemental function

Argument type and attributes

A
must be of type integer, real, or complex, or a boz-literal constant.
KIND (optional)
must be a scalar integer constant 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
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.