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.

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

REAL(16) Constants<br />

A REAL(16) constant has more than four times the accuracy of a REAL(4) number, and a greater<br />

range.<br />

A REAL(16) constant occupies 16 bytes of memory. The number of digits that precede the<br />

exponent is unlimited, but typically only the leftmost 33 digits are significant.<br />

IEEE X_floating format is used.<br />

Examples<br />

The following examples show valid and invalid REAL(16) constants:<br />

Valid<br />

123456789Q4000<br />

–1.23Q–400<br />

+2.72Q0<br />

1.88_16<br />

Invalid<br />

Explanation<br />

1.Q5000 Too large.<br />

1.Q–5000<br />

Too small.<br />

See Also<br />

• “General Rules for Real Constants”<br />

• Building Applications for details on the format and range of REAL(16) data<br />

Complex Data Types<br />

Complex data types can be specified as follows:<br />

COMPLEX<br />

COMPLEX([KIND=]n)<br />

COMPLEX*s<br />

DOUBLE COMPLEX<br />

n<br />

Is kind 4, 8, or 16.<br />

s<br />

Is 8, 16, or 32. COMPLEX(4) is specified as COMPLEX*8; COMPLEX(8) is specified as<br />

COMPLEX*16; COMPLEX(16) is specified as COMPLEX*32.<br />

3-10

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

Saved successfully!

Ooh no, something went wrong!