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

3- 7
CAUTION Since MPE XL floating-point format is different from MPE V
floating point, REAL and LONG based constants must be carefully
translated if they are intended for arithmetic use.
Composite Constants
Table 3-12. Composite Constants
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Type: INTEGER | Type: short int |
| DOUBLE | long int or int |
| LOGICAL | unsigned short int |
| BYTE | unsigned char OR unsigned short |
| | int |
| REAL | float |
| LONG | double |
| | |
---------------------------------------------------------------------------------------------
| | |
|
composite-constant
: | No direct equivalent. |
| | |
| [
sign
]
"
[
"length"
/
"value
[,...]
"
]
"
| See "Based Constants" above. |
| [
type
] | |
| | |
| | |
|
type
| |
| is D, E, or L (for DOUBLE, REAL, or | |
| LONG); default is single word usable as | |
| INTEGER, LOGICAL, or BYTE. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Example: | Example: |
| | |
| +[3/2,12/%5252]
(=
%25252
)
| 025252
octal
|
| -[3/2,12/%5252]
(=
%152526
)
| -025252
octal
|
| | |
---------------------------------------------------------------------------------------------
CAUTION Since MPE XL floating-point format is different from MPE V
floating point, REAL and LONG composite constants must be
carefully translated if they are intended for arithmetic use.