4. Embedded QUEL for Fortran : Fortran Variables and Data Types : Data Type Conversion
 
Share this page                  
Data Type Conversion
A Fortran variable declaration must be compatible with the Ingres value it represents. Numeric Ingres values can be set by and retrieved into numeric variables. Ingres character values can be set by and retrieved into character variables.
Data type conversion occurs automatically for different numeric types, such as from floating-point Ingres database column values into integer Fortran variables, and for character strings, such as from varying-length Ingres character fields into fixed-length Fortran character string buffers.
Ingres does not automatically convert between numeric and character types. You must use one of the Ingres type conversion functions or a Fortran conversion routine for this purpose.
The following table shows the specific type correspondences for each Ingres data type.