GNU Info

Info Node: (g77-295.info)Int Intrinsic

(g77-295.info)Int Intrinsic


Next: Int2 Intrinsic Prev: Index Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

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.

   Note: NInt Intrinsic, for how to convert, rounded to nearest whole
number.

   Note: AInt Intrinsic, for how to truncate to whole number without
converting.


automatically generated by info2www version 1.2.2.9