













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Z = X + i Y
When you write
You get: (12.0, -9.0)
“STRING” or ‘STRING’
CHARACTER ( n ) :: string
CHARACTER (LEN= n ) :: string
CHARACTER :: string
⇒ Length in 2 nd^ example is assumed to be ONE!!!
CHARACTER :: stringa10, stringb20, stringc*
“A n ”
As in: format (1x, I5, A20, F10.2)
Options: “I”, “F”, “E”, and now…”A” (also “D”…last slides)
You might enter: “JAN” 150
DAY is stored as “WEDNESDAY ”
Character data can be “added” !!!
character :: first5, second6, third* first = ‘minor’ second = ‘ thing’ third = first // second
produces… third = ‘minor thing’
Suppose you declare:
REAL :: TEMP
and later print a value with PRINT*,TEMP
→ a number with certain number of digits after the decimal.
Instead if you declare:
DOUBLE PRECISION:: TEMP
and later print a value with PRINT*,TEMP
→ a number with DOUBLE the number of digits after the decimal.
→ Double precision!