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.

REAL<br />

Declares entities of type real.<br />

Syntax<br />

REAL [kind-spec] [[, attrib-list] ::] entity-list<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

REAL<br />

kind-spec is the kind type parameter that specifies the range and precision of the<br />

entities in entity-list. kind-spec takes the form:<br />

([KIND=]kind-param)<br />

where kind-param can be a named constant or a constant expression that<br />

has the integer value of 4, 8, or 16. The size of the default type is 4.<br />

As an extension, kind-spec can take the form:<br />

* len-param<br />

where len-param is the integer 4, 8, or 16 (default = 4).<br />

attrib-list is a list of one or more of the following attributes, separated by commas:<br />

Table 10-48<br />

ALLOCATABLE INTRINSIC PRIVATE<br />

DIMENSION OPTIONAL PUBLIC<br />

EXTERNAL PARAMETER SAVE<br />

INTENT POINTER TARGET<br />

If attrib-list is present, it must be followed by the double colon. For<br />

information about individual attributes, see the corresponding statement in<br />

this chapter.<br />

entity-list is a list of entities, separated by commas. Each entity takes the form:<br />

name [( array-spec )] [ = initialization-expr ]<br />

where name isthenameofavariableorfunction,array-spec is a<br />

comma-separated list of dimension bounds, and initialization-expr is a<br />

real constant expression. If initialization-expr is present, entity-list<br />

must be preceded by the double colon.<br />

Chapter 10 411

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

Saved successfully!

Ooh no, something went wrong!