24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

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.

Table of Contents<br />

11.7 Editing .............................................................................................................................. 228<br />

11.7.1 Apostrophe Editing ............................................................................................ 229<br />

11.7.2 H Editing ............................................................................................................ 229<br />

11.7.3 Positional Editing: T, TL, TR and X Editing ..................................................... 229<br />

11.7.4 Slash Editing ...................................................................................................... 230<br />

11.7.5 Colon Editing ..................................................................................................... 230<br />

11.7.6 S, SP and SS Editing .......................................................................................... 230<br />

11.7.7 P Editing ............................................................................................................ 230<br />

11.7.8 BN and BZ Editing ............................................................................................ 231<br />

11.7.9 $ or \ Editing (Extension) .................................................................................. 231<br />

11.7.10 Numeric Editing: I, F, E, D and G Edit Descriptors ........................................ 232<br />

11.7.10.1 Integer Editing: Iw and Iw.m Edit Descriptors ................................. 232<br />

11.7.10.2 Floating-point Editing: F, E, D and G Edit Descriptors .................... 233<br />

11.7.10.3 F Editing ............................................................................................ 233<br />

11.7.10.4 E and D Editing ................................................................................. 234<br />

11.7.10.5 G Editing ........................................................................................... 235<br />

11.7.10.6 Complex Editing ............................................................................... 236<br />

11.7.11 L Edit Descriptor ............................................................................................. 236<br />

11.7.12 A Edit Descriptor ............................................................................................. 236<br />

11.7.13 Z Editing (Extension) ...................................................................................... 237<br />

11.8 Format-Directed Input/Output ......................................................................................... 238<br />

11.9 List-Directed Formatting .................................................................................................. 238<br />

11.9.1 List-Directed Input ............................................................................................ 239<br />

11.9.2 List-Directed Output .......................................................................................... 240<br />

11.10 Namelist-Directed Formatting (Extension) .................................................................... 240<br />

11.10.1 Namelist-Directed Input (Extension) ............................................................... 241<br />

11.10.2 Namelist-Directed Output ................................................................................ 242<br />

12 Functions and Subroutines ............................................................................................................. 243<br />

12.1 Introduction ...................................................................................................................... 243<br />

12.2 Statement Functions ......................................................................................................... 243<br />

12.2.1 Referencing a Statement Function ..................................................................... 244<br />

12.2.2 Statement Function Restrictions ........................................................................ 245<br />

12.3 Intrinsic Functions ............................................................................................................ 246<br />

12.3.1 Specific Names and Generic Names of Intrinsic Functions .............................. 246<br />

12.3.2 Type Conversion: Conversion to integer ........................................................... 248<br />

12.3.3 Type Conversion: Conversion to real ................................................................ 248<br />

12.3.4 Type Conversion: Conversion to double precision ........................................... 249<br />

12.3.5 Type Conversion: Conversion to complex ........................................................ 249<br />

12.3.6 Type Conversion: Conversion to double complex ............................................ 249<br />

12.3.7 Type Conversion: Character conversion to integer ........................................... 250<br />

12.3.8 Type Conversion: Conversion to character ....................................................... 250<br />

12.3.9 Truncation .......................................................................................................... 250<br />

12.3.10 Nearest Whole Number ................................................................................... 251<br />

12.3.11 Nearest Integer ................................................................................................. 251<br />

12.3.12 Absolute Value ................................................................................................ 251<br />

12.3.13 Remainder ........................................................................................................ 252<br />

12.3.14 Transfer of Sign ............................................................................................... 252<br />

12.3.15 Positive Difference .......................................................................................... 253<br />

12.3.16 Double Precision Product ................................................................................ 253<br />

12.3.17 Choosing Largest Value .................................................................................. 253<br />

12.3.18 Choosing Smallest Value ................................................................................. 254<br />

x

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

Saved successfully!

Ooh no, something went wrong!