C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

Table 66 Integer Types, Part 1 (continued)
32-Bit Integer16-Bit Integer8-Bit Integer
INT(32)STRINGTAL and pTAL INT
UNSIGNED(8)
INT(16)
UNSIGNED(16)
211Return Value Size
(Words)
1
Unsigned Integer.
2
Index Data Item is a 16-bit integer in COBOL 74 and a 32-bit integer in HP COBOL85.
3
HP COBOL85 only.
4
INTEGER is normally equivalent to INTEGER*2. The INTEGER*4 and INTEGER*8 compiler directives redefine INTEGER.
Table 67 Integer Types, Part 2
Decimal IntegerBit Integer of 1 to 31 Bits64-Bit Integer
----INT(64)C-series BASIC
FIXED(0)
----long longC and C++
unsigned long long
Numeric DISPLAY--PIC S9(n) COMPCOBOL
or
PIC 9(n) COMP without P or
V, 10 < n < 18NATIVE-8
1
----INTEGER*8FORTRAN
DECIMALUNSIGNED(n), 1 < n < 16INT64D-series Pascal
INT(n), 1 < n < 16
DECIMAL (n,s)--NUMERIC(10)…
NUMERIC(18)
SQL
PIC 9(n) DISPLAY
PIC 9(10) COMP… PIC 9(18)
COMP LARGEINT
--UNSIGNED(n), 1 < n < 31FIXED(0), INT(64)TAL and pTAL
1 or 2, depends on declared
pointer size
1 or 2 in TAL, 1 in other
languages
4Return Value Size
(Words)
1
HP TNS COBOL only
Table 68 Floating, Fixed, and Complex Types
64-Bit Complex64-Bit Fixed Point64-Bit Floating32-Bit Floating
--FIXED(s), 0 < s < 18REAL(64)REALC-series BASIC
----doublefloatC and C++
--PIC S9(n–s)v9(s) COMP
or PIC 9(n–s)v9(s)
COMP, 10 < n < 18
----COBOL
COMPLEX--DOUBLE PRECISIONREALFORTRAN
----LONGREALREALD-series Pascal
--NUMERIC (n,s) PIC
9(n-s)v9(s) COMP
----SQL
431