Fortran Format Statements
Allows for greater control with output (and input)
- Can specify real, integer, character types
- The most common format code letters
Format Special Characters
- F; real numbers, fixed point format
- I; integer
- A; character
- X; horizontal skip (space)
Real Descriptor
rFw.d
Fis the real descriptorwis width of the field- including the decimal point and minus sign
dis number of digits to the right of the decimal pointris repetition value
Integer Descriptor
rIw.m
Iis the integer descriptorwis width of the field- including the decimal point and minus sign
mis minimum number of digits; will add zeros to front of numberris repetition value
Character Descriptor
rAw
Ais the integer descriptorwis width of the field- including the decimal point and minus sign
ris repetition value
Space Descriptor
nX
nindicates the number of spaces to include- Basically, a repetition of spaces