TAL Reference Summary

Data Types
TAL Reference Summary
10 096256 Tandem Computers Incorporated
Format of Data Types The format for specifying data types in declarations is:
214
fpoint
)(
fpoint
*
(
fpoint
)
width
fpoint
)
( width
STRING
INT
REAL
INT
FIXED
UNSIGNED
width
is a constant expression that, as of the D20 release, can include LITERALs and
DEFINEs. The result of the constant expression must be one of these values:
Data Type Prefix width, in bits
INT 16, 32, or 64
REAL 32 or 64
UNSIGNED—simple variable,
parameter, or function result
A value in the range 1 through 31
UNSIGNED—array element 1, 2, 4, or 8
fpoint
is an integer in the range –19 through 19. The default fpoint is 0 (no decimal
places). A positive fpoint specifies the number of decimal places to the right of the
decimal point.
FIXED(3) x := 0.642F; !Stored as 642
A negative fpoint specifies the number of integer places to the left of the decimal
point.
FIXED(-3) y := 642945F; !Stored as 642; accessed
! as 642000
* (asterisk)
is a FIXED data type notation as of the D20 release. The asterisk prevents scaling
of the initialization value.