When doing mixed-language programming with Intel Fortran and C# you must be concerned with data types, because each language handles them differently. The following table lists the equivalent data types between Fortran and C#:
Equivalent Data Types
|
Fortran Data Type |
C# Data Type |
|
REAL(4) |
float |
|
REAL(8) |
double |
|
REAL(16) |
--- |
|
CHARACTER(1) |
byte |
|
CHARACTER*(*) |
|
|
All LOGICAL types |
int |
|
INTEGER(1) |
sbyte |
|
INTEGER(2) |
short |
|
INTEGER(4) |
int |
|
INTEGER(8) |
long |
