06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9 <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

Results:<br />

The result type is integer. If kind is present, the kind parameter of the result is<br />

that specified by kind; otherwise, the kind parameter of the result is shown in<br />

the following table. If the processor cannot represent the result value in the<br />

kind of the result, the result is undefined.<br />

Functions that cause conversion of one data type to another type have the same<br />

affect as the implied conversion in assignment statements.<br />

The result value depends on the type and absolute value of a, as follows:<br />

• If a is of type integer, INT (a) = a.<br />

• If a is of type real and a < 1, INT (a) has the value zero.<br />

If a is of type real and a ≥ 1, INT (a) is the integer whose magnitude is<br />

the largest integer that does not exceed the magnitude of a and whose sign is<br />

the same as the sign of a.<br />

• If a is of type complex, INT (a) = a is the value obtained by applying the<br />

preceding rules (for a real argument) to the real part of a.<br />

Specific Name 1 Argument Type Result Type<br />

INTEGER(1), INTEGER(2), INTEGER(4)<br />

INTEGER(4)<br />

INTEGER(1), INTEGER(2), INTEGER(4), INTEGER(8) INTEGER(8)<br />

IJINT INTEGER(4) INTEGER(2)<br />

IIFIX 2 REAL(4) INTEGER(2)<br />

IINT REAL(4) INTEGER(2)<br />

IFIX 3,4 REAL(4) INTEGER(4)<br />

JFIX<br />

INTEGER(1), INTEGER(2), INTEGER(4), INTEGER(8),<br />

REAL(4), REAL(8), REAL(16), COMPLEX(4),<br />

COMPLEX(8), COMPLEX(16)<br />

INTEGER(4)<br />

INT 5,6,7 REAL(4) INTEGER(4)<br />

KIFIX REAL(4) INTEGER(8)<br />

KINT REAL(4) INTEGER(8)<br />

IIDINT REAL(8) INTEGER(2)<br />

IDINT 6,8 REAL(8) INTEGER(4)<br />

KIDINT REAL(8) INTEGER(8)<br />

IIQINT REAL(16) INTEGER(2)<br />

IQINT 6,9 REAL(16) INTEGER(4)<br />

KIQINT REAL(16) INTEGER(8)<br />

9-80

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

Saved successfully!

Ooh no, something went wrong!