02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 8-2 outlines the rules for the format of list-directed input data.<br />

Table 8-2 Format of list-directed input data<br />

Data type Input format rules<br />

Integer Conformstothesamerulesasintegerconstants.<br />

Real and<br />

double<br />

precision<br />

Complex and<br />

double<br />

complex<br />

Any valid form for real and double precision. In<br />

addition, the exponent can be indicated by a signed<br />

integer constant (the Q, D, orE can be omitted), and<br />

the decimal point can be omitted for those values<br />

with no fractional part.<br />

Two integer, real, or double precision constants,<br />

separatedbyacommaandenclosedinparentheses.<br />

The first number is the real part of the complex or<br />

double complex number, and the second number is<br />

the imaginary part. Each of the numbers can be<br />

preceded or followed by blanks or the end of a record.<br />

Logical Consists of a field of characters, the first nonblank<br />

character of which must be a T fortrueoranF for<br />

false (excluding the optional leading decimal point).<br />

Integer constants may also appear.<br />

Character Same form as character constants. Delimiting with<br />

single or double quotation marks is needed only if<br />

the constant contains any separators; delimiters are<br />

discarded upon input. Character constants can be<br />

continued from one record to the next. The<br />

end-of-record does not cause a blank or any other<br />

character to become part of the constant. If the<br />

length of the character constant is greater than or<br />

equal to the length, len, of the list item, only the<br />

leftmost len characters of the constant are<br />

transferred. If the length of the constant is less than<br />

len, the constant is left-justified in the list item with<br />

trailing blanks.<br />

I/O and file handling<br />

File access methods<br />

Output The format of list-directed output is determined by the type and value of the data in<br />

the output list and by the value of the DELIM= specifier in the OPEN statement. For information<br />

about the DELIM= specifier, see the description of the OPEN statement in Chapter 10, “<strong>HP</strong><br />

<strong>Fortran</strong> statements,” on page 233.<br />

Chapter 8 179

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

Saved successfully!

Ooh no, something went wrong!