Intel fortran-80 Laptop User Manual


 
Input/Output
6-16
6.4.3 FORMAT Statement
The
form
of
the
FORMAT
statement
is
stl
FORMAT ([flist])
where
stl
is
a
1-5
digit
statement
label
JUst
is
a
format
specification list whose items
are
separated
by
commas
Each
item in
'flist'
must
be a
repeatable
edit
descriptor,
a
nonrepeatable
edit
descriptor,
or
a
parenthesized
'flist.'
An
edit
descriptor
is
repeated
by prefixing it
with a
nonzero,
unsigned integer
constant
called a
'repeat
specification.'
The
entire
'flist'
can
also be prefixed by a
repeat
specification.
F5.3
5F5.3
X
3(2X,I5)
Repeatable
descriptor
Repeatable
descriptor
prefixed with
repeat
specification'
5'
Nonrepeatable
descriptor
Entire
'flist'
prefixed with
repeat
specification
'3'
Note
that
the
FORMAT
statement
with
no
'flist'
specified,
'FORMAT
(
),'
can be
used only
if
the
110
list
is
also
empty.
Conversely,
if
the
110
list
is
not
empty,
'flist'
must
have
at
least
one
repeatable
edit
descriptor.
6.4.3. t Edit Descriptors
6.4.3.1.1
Repeatable
Edit
Descriptors.
Repeatable
edit descriptors generally consist
of
a letter indicating the type
of
data
involved
and
a
number
indicating
the
size
of
the
data
field
and
how
it
is
to
be divided.
The
repeatable
edit descriptors are:
lw
Fw.d
Ew.d
Ew.dEe
Lw
A
Aw
Bw
Zw
where
I, F,
E,
LandA
BandZ
w
d
e
Integer
descriptor
Real
number
descriptor
Real
number
descriptor
Real
number
descriptor
Logical
descriptor
Variable-length
alphanumeric
descriptor
Fixed-length
alphanumeric
descriptor
Binary
descriptor
Hexadecimal
descriptor
indicate
the
type
of
data
being edited
indicate
the
number
base
of
data
being
edited
is
a
nonzero,
unsigned integer
constant
representing the width
of
the
entire edited field
is
an
unsigned integer
constant
representing
the
number
of
digits
that
should
follow
the
decimal
point.
is
a
nonzero,
unsigned integer
constant
representing
the
width
of
the
exponent
field.
The
I,
F,
and
E edit descriptors
are
used
to
specify
110
of
integer
and
real
data.
F
and
E serve the
same
function
on
input;
E allows
output
of
real
numbers
in scientific
notation.
FORTRAN-SO