
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
'ARITHMETICOVERFLOW ERROR' 'MURPHY'SLAW'
For the sake of compatibility with earlier versions of FORTRAN,
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.