Go to the first, previous, next, last section, table of contents.


Int Intrinsic

Int(A)

Int: INTEGER(KIND=1) function.

A: INTEGER, REAL, or COMPLEX; scalar; INTENT(IN).

Intrinsic groups: (standard FORTRAN 77).

Description:

Returns A with the fractional portion of its magnitude truncated and its sign preserved, converted to type INTEGER(KIND=1).

If A is type COMPLEX, its real part is truncated and converted, and its imaginary part is disregarded.

See section NInt Intrinsic, for how to convert, rounded to nearest whole number.

See section AInt Intrinsic, for how to truncate to whole number without converting.


Go to the first, previous, next, last section, table of contents.