02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

KIND (optional) must be a scalar integer initialization expression.<br />

Result type/<br />

type parameters<br />

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

Integer. If KIND is present, the kind type parameter is that specified by KIND; otherwise,the<br />

kind type parameter is that of default integer type.<br />

Result value<br />

Case 1 If A is of type integer, INT(A) = A.<br />

Case 2 If A is of type real, there are two cases: if |A| =1,INT(A) istheintegerwhosemagnitudeisthelargestintegerthat<br />

does not exceed the magnitude of A and whose sign is the same as the sign of<br />

A.<br />

Case 3 If A is of type complex, INT(A) is the value obtained by applying the above<br />

rules (for reals) to the real part of A. The result is undefined if the processor<br />

cannot represent the result in the specified integer type.<br />

Specific forms<br />

IFIX, IIFIX, IINT, JIFIX, JINT, KIFIX, KINT.<br />

INT1(A)<br />

Description<br />

Convert to INTEGER(1) type.<br />

Class<br />

Elemental nonstandard function.<br />

Argument<br />

A must be of type integer, real, or complex.<br />

Result<br />

INTEGER(1) type. If A is complex, INT1(A) is equal to the truncated real portion of A.<br />

Chapter 11 531

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!