12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

where digits is the scaling factor, the power of ten, to be applied to the unscaled constant. The firsttwo forms above are equivalent, that is, a scaling factor without a sign is assumed to be positive.The following table shows several real constants.Table 2-5: Example of Real ConstantsConstantValue1.0 unscaled single precision constant1. unscaled single precision constant-.003 signed unscaled single precision constant-.003_LOWsigned unscaled constant with kind LOW-1.0 signed unscaled single precision constant6.1E2_LOW+2.3E3_HIGHis equivalent to 610.0 with kind LOWis equivalent to 2300.0 with kind HIGH6.1E2 is equivalent to 610.0+2.3E3 is equivalent to 2300.0-3.5E-1 is equivalent to -0.352.2.4 Double Precision ConstantsA double precision constant has the same form as a scaled REAL constant except that the E isreplaced by D and the kind parameter is not permitted. For example:D+digitsDdigitD-digitsThe following table shows several double precision constants.Table 2-6: Double Precision ConstantsConstantValue6.1D2 is equivalent to 610.0+2.3D3 is equivalent to 2300.0-3.5D-1 is equivalent to -0.35+4D4 is equivalent to 4000036 Chapter 2

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

Saved successfully!

Ooh no, something went wrong!