FORTRAN Declarations
integer*1 code ! +/- 127, exact
integer*2 count ! +/- 32K, exact
integer*4 sample ! +/- 2G, exact
real*4 amount ! +/- 10^38, accuracy 10^-6
real*8 density ! +/- 10^308, accuracy 10^-15
logical*1 done ! two values: .true. and .false.
character*20 title ! a string of upto 20 characters
!---------------------------------------------------------
! You can optionally combine declarations of the different
! sizes of the same type:
!---------------------------------------------------------
character title*20, name*30, college*1
integer code*1, count*2, sample*4
real amount*4, density*8
!---------------------------------------------------------
! You can also initialize as you declare:
!---------------------------------------------------------
character title*20 / 'York' /
integer*2 count / 0 /
real*4 amount / 1.0 /
!------------------------------------------------- --------
! Note that title will have 20 characters even though
! we stored only 4 (they will be padded by blanks).
!------------------------------------------------- --------