10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

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.

Input and OutputThis example produces this output:25.00 2500.00 2500.00 2500.00 2500.00 2500.00<strong>The</strong> effect of the scale factor continues until another scale factor is used.5.5.2.17. Q Format Control - Quantity<strong>The</strong> Q edit descriptor calculates the number of characters remaining in the input record and storesthat value in the next I/O list item. On output, the Q descriptor skips the next I/O item.5.5.2.18. r Format Control - Rounding<strong>The</strong> rounding edit descriptors are valid in format processing, such as in a READ or WRITEstatement. <strong>The</strong> specific rounding mode takes effect immediately when encountered, and staysin effect until either another descriptor is encountered or until the end of the READ and WRITEstatement. <strong>The</strong> following table lists the edit descriptors associated with rounding.Table 18 Format Character Controls for Rounding PrinterThis descriptor ...rcrdrnrprurz... Indicates this type of roundinground compatibleround downround nearestround as processor_definedround upround zeroBoth nearest and compatible refer to closest representable value. If these are equidistant,then the rounding is processor-dependent for nearest and the value away from zero forcompatible.5.5.2.19. S Format Control – Sign Control<strong>The</strong> S format specifier restores the default processing for writing a plus; the default is SSprocessing.SP forces the processor to write a plus in any position where an optional plus is found in numericoutput fields, this only affects output statements.SS stops the processor from writing a plus in any position where an optional plus is found innumeric output fields, this only affects output statements.5.5.2.20. T, TL and X Format Controls – Spaces and Tab Controls<strong>The</strong> T specifier controls which portion of a record in an iolist value is read from or written to afile. <strong>The</strong> general form, which specifies that the nth value is to be written to or from a record, is asfollows:Tn<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 81

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

Saved successfully!

Ooh no, something went wrong!