Platform

x64, Win32, .NET

Purpose

To convert to integer type.

Class

Elemental function.

Syntax

INTEGER FUNCTION INT(A [,KIND]) INTEGER KIND

Description

A is of type INTEGER, REAL or COMPLEX. The kind type of the result is KIND if it is present otherwise it is the default integer kind.

Return value

If A is integer the result is A (if it is in range).

If A is real the result is the integer part of A truncated towards zero.

If A is complex, INT(A) is obtained by applying the above rule to the real part of A.