Next: Int2 Intrinsic, Previous: Index Intrinsic, Up: Table of Intrinsic Functions
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 NInt Intrinsic, for how to convert, rounded to nearest whole number.
See AInt Intrinsic, for how to truncate to whole number without converting.