FORTRAN-80

FORTRAN Concepts

Character data is a string of any characters representable in the processor. The blank character is valid and significant in a character constant. A character constant has the form of a string of characters surrounded by apostrophes. An apostrophe within the string is represented by a double apostrophe. A character constant can have 1-255 characters.

'ARITHMETICOVERFLOW ERROR' 'MURPHY'SLAW'

For the sake of compatibility with earlier versions of FORTRAN, FORTRAN-80 also supports Hollerith type data under the guise of arithmetic/logical types. The Hollerith type is summarized in Appendix C.

2.~~~.2~~t3Lellgth.ATeal v~lu~ alwij.yso¢cupies four hytesof memory (32 hitS).

Atlintegtrm~~pc¢upY?l1e,>~W9,.()rfout bytes.F?ran integervariahle, the length is spe~ifiedw~eT\th,e"ariably,type is defined (section 3.1) Or by default (section F .2~6). Jf~ou~rnberpas~jS'specified [or an integer constant, the ,constant is assumed to he deciO}alaT\<lits'l~ngthist~e s~Ille;asthe jntegervaria,bIedefault length., If a number base .,is speci~ied.for,an.i~teger,,~onstant (a$,des~rib:d j~ the, next ,'.subsection). the ~~n~t~js~~t~rmJned implicitly by the processor from the base and number of digits pftlJeirrteger.

~~~.4.~~~~~e~.~~~~.•,<~()r.~ritliineti9·.·••(irlte~~r~r/~~~~)c()nst~~tS'.and',variables,

th~~(#!il11ql~t),Illp:erb(l$.ei$assll~ed with.thefollQwi'Q8.e~(;eption~',·,luteger••constants

can;bebinary,()etal~" or hexadecimalas well.

2-5

Page 17
Image 17
Intel fortran-80 manual Arithmeticoverflow Error Murphyslaw