TAL Programmer's Guide

Data Type Correspondence
096254 Tandem Computers Incorporated F–3
Table F-2. Integer Types, Part 2
64-Bit Integer Bit Integer of 1 to 31 Bits Decimal Integer
BASIC INT(64)
FIXED(0)
——
C 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
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
INTEGER
DECIMAL (n,s)
PIC 9(n) DISPLAY
TAL FIXED(0) UNSIGNED(n) , 1 n 31
Return Value
Size (Words)
4 1, 1 or 2 in TAL 1 or 2, depends on
declared pointer size
[1] Tandem COBOL85 only.
Table F-3. Floating, Fixed, and Complex Types
32-Bit Floating 64-Bit Floating 64-Bit Fixed Point 64-Bit Complex
BASIC REAL REAL(64) FIXED(s), 0 s 18
C float double
COBOL PIC S9(n–s)v9(s) COMP or
PIC 9(n–s)v9(s) COMP, 10 n 18
FORTRAN REAL DOUBLE PRECISION COMPLEX
Pascal REAL LONGREAL
SQL NUMERIC (n,s)
PIC 9(n-s)v9(s) COMP
TAL REAL REAL(64) FIXED(s), -19 s 19
Return Value
Size (Words)
24 4 4