COBOL Manual for TNS and TNS/R Programs

Data Type Correspondence
HP COBOL Manual for TNS and TNS/R Programs522555-006
B-4
Table B-3. Floating, Fixed, and Complex Types
32-Bit
Floating
64-Bit
Floating 64-Bit Fixed Point
64-Bit
Complex
HP C and
HP C++
float double -- --
COBOL -- -- PIC S9(ns)v9(s) COMP or
PIC 9(ns)v9(s) COMP,
10 <= n <= 18
--
FORTRAN REAL DOUBLE
PRECISION
-- COMPLEX
Pascal REAL LONGREAL -- --
SQL/MP or
SQL/MX
-- -- NUMERIC (n,s)
PIC 9(n-s)v9(s) COMP
--
TAL
pTAL
REAL
REAL(32)
REAL(64) FIXED(s), -19 <= s <= 19 --
Return
Value Size
(Words)
24 4 4