Download PVF User's Guide

Transcript
Table 9-1: Representation of Fortran Data Types
Fortran Data Type
Format
Range
INTEGER
2's complement integer
-231 to 231-1
INTEGER*2
2's complement integer
-32768 to 32767
INTEGER*4
same as INTEGER
INTEGER*8
same as INTEGER
-263 to 263-1
LOGICAL
same as INTEGER
true or false
LOGICAL*1
8 bit value
true or false
LOGICAL*2
16 bit value
true or false
LOGICAL*4
same as INTEGER
true or false
LOGICAL*8
same as INTEGER
true or false
BYTE
2's complement
-128 to 127
REAL
Single-precision floating point
10-37 to 1038 (1)
REAL*4
Single-precision floating point
10-37 to 1038 (1)
REAL*8
Double-precision floating point
10-307 to 10308 (1)
DOUBLE PRECISION
Double-precision floating point
10-307 to 10308 (1)
COMPLEX
See REAL
See REAL
DOUBLE COMPLEX
See DOUBLE PRECISION
See DOUBLE PRECISION
COMPLEX*16
Same as above
Same as above
CHARACTER*n
Sequence of n bytes
(1) Approximate value
142
Fortran Data Types