TAL Reference Manual
Standard Functions
TAL Reference Manual—526371-001
14-4
Type-Transfer Functions
Type-Transfer Functions
The type-transfer functions convert a variable of one data type into a variable of
another data type.
Functions that convert an expression from a smaller data type to a larger data type
perform a sign extension of the expression to the high bits. For example, $DFIX returns
a FIXED(0) expression from an INT(32) expression.
Functions by Data Type
Table 14-2 cross-references type-transfer functions by data type.
Miscellaneous $ABS Returns the absolute value of an expression
$COMP Returns the one’s complement of an INT expression
$OPTIONAL Controls passing of a parameter to VARIABLE or
EXTENSIBLE procedure in a D20 or later object file
$PARAM Tests for the receipt of an actual parameter
$READCLO-
CK
Returns a FIXED value from an RCLK instruction
$RP Returns an INT value that is the current setting of the
compiler's internal register pointer
$USERCODE Returns the content of a word in the current user code
space
Table 14-2. Type-Transfer Functions by Data Type (page 1 of 2)
Result
Expression INT INT (32) FIXED REAL REAL (64)
INT - $DBL
$DBLR
$UDBL
$FIX
$FIXR
$IFIX
$LFIX
$FLT
$FLTR
$EFLT
$EFLTR
INT (32) $INT
$INTR
$HIGH
-$DFIX
$FIX
$FIXR
$FLT
$FLTR
$EFLT
$EFLTR
Table 14-1. Summary of Standard Functions (page3of3)
Functional
Group
Function
Name Description