7. Embedded QUEL for Pascal : Pascal Variables and Data Types : Variable and Type Declarations : The Double Storage Format
 
Share this page                  
The Double Storage Format
EQUEL requires that the storage representation for double variables be d_float, because the EQUEL runtime system uses that format for floating-point conversions. If your EQUEL program has double variables that interact with the EQUEL runtime system, you must make sure they are stored in the d_float format. Because the default Pascal format is d_float, your program will automatically use the correct storage representation unless you use the g_floating compiler option. Any module compiled with this option must not use double variables or float literals to interact with Ingres. Float literals are treated as double precision numbers by Ingres. Note that EQUEL recognizes only single, and not double or quadruple, exponential notation for real constants. Thus, any real constants passed to Ingres are always single precision and are unaffected by the g_floating compiler option.