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

Table Of Contents
Data Type Correspondence
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
D-3
Table D-2. Integer Types, Part 2
64-Bit Integer
Bit Integer of 1 to
31 Bits Decimal Integer
C-series BASIC INT(64)
FIXED(0)
-- --
C and C++ long long
unsigned long
long
-- --
COBOL PIC S9(n) COMP
or PIC 9(n)
COMP without P
or V,
10 <
n < 18
NATIVE-8
1
-- Numeric DISPLAY
FORTRAN INTEGER*8 -- --
D-series Pascal INT64 UNSIGNED(n), 1 <
n < 16
INT(n), 1 <
n < 16
DECIMAL
SQL NUMERIC(10)
NUMERIC(18)
PIC 9(10)
COMP…
PIC 9(18) COMP
LARGEINT
-- DECIMAL (n,s)
PIC 9(n) DISPLAY
TAL
and
pTAL
FIXED(0),
INT(64)
UNSIGNED(n), 1 <
n < 31
--
Return Value Size
(Words)
4 1 or 2 in TAL, 1 in
other languages
1 or 2, depends on
declared pointer size
1. HP TNS COBOL only