GNU Info

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

(g77-295.info)NInt Intrinsic


Next: Not Intrinsic Prev: Nearest Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

NInt Intrinsic
..............

     NInt(A)

NInt: `INTEGER(KIND=1)' function.

A: `REAL'; scalar; INTENT(IN).

Intrinsic groups: (standard FORTRAN 77).

Description:

   Returns A with the fractional portion of its magnitude eliminated by
rounding to the nearest whole number and with its sign preserved,
converted to type `INTEGER(KIND=1)'.

   If A is type `COMPLEX', its real part is rounded and converted.

   A fractional portion exactly equal to `.5' is rounded to the whole
number that is larger in magnitude.  (Also called "Fortran round".)

   Note: Int Intrinsic, for how to convert, truncate to whole number.

   Note: ANInt Intrinsic, for how to round to nearest whole number
without converting.


automatically generated by info2www version 1.2.2.9