HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
REAL
Chapter 10 445
REAL
Declares entities of type real.
Syntax
REAL [
kind-spec
] [[,
attrib-list
] ::]
entity-list
kind-spec
is the kind type parameter that speciļ¬es the range and precision of the
entities in
entity-list
.
kind-spec
takes the form:
([KIND=]
kind-param
)
where
kind-param
can be a named constant or a constant expression that
has the integer value of 4, 8, or 16. The size of the default type is 4.
As an extension,
kind-spec
can take the form:
*
len-param
where
len-param
is the integer 4, 8, or 16 (default = 4).
attrib-list
is a list of one or more of the following attributes, separated by commas:
If
attrib-list
is present, it must be followed by the double colon. For
information about individual attributes, see the corresponding statement in
this chapter.
entity-list
is a list of entities, separated by commas. Each entity takes the form:
name
[(
array-spec
)] [ =
initialization-expr
]
where
name
is the name of a variable or function,
array-spec
is a
comma-separated list of dimension bounds, and
initialization-expr
is a
real constant expression. If
initialization-expr
is present,
entity-list
must be preceded by the double colon.
Table 10-48
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET