SPL to HP C/XL Migration Guide (30231-90001)

3- 2
INTEGER Format
Table 3-2. INTEGER Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Type: INTEGER | Type: short int |
| | |
---------------------------------------------------------------------------------------------
| | |
| 16-bit signed integer in two's-complement | Same as SPL. |
| form. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Range is -32768 to 32767. | Same as SPL. |
| | |
---------------------------------------------------------------------------------------------
DOUBLE Integer Format
Table 3-3. DOUBLE Integer Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Type: DOUBLE | Type: long int OR int (equivalent) |
| | |
---------------------------------------------------------------------------------------------
| | |
| 32-bit signed integer in two's-complement | Same as SPL. |
| form. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Range is -2,147,483,648 to 2,147,483,647. | Same as SPL. |
| | |
---------------------------------------------------------------------------------------------
REAL Format
Table 3-4. REAL Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Type: REAL | Type: float |
| | |
---------------------------------------------------------------------------------------------
| | |
| 32 bits (two words) in MPE V floating-point | 32 bits (one word) in IEEE floating-point |
| format: | format: |
| 1-bit sign, 9-bit exponent, 22-bit | 1-bit sign, 8-bit exponent, 23-bit |
| fraction. | fraction. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Approximate nonzero range: | Approximate nonzero range: |
| 8.63617x10-78 to 1.157921x1077 | 1.754944x10-38 to 3.4028235x1038 |
| | |
---------------------------------------------------------------------------------------------