TAL Reference Manual

Standard Functions
TAL Reference Manual526371-001
14-17
Usage Consideration
fixed-expression
is a FIXED expression, which $FIXD treats as a FIXED(0) expression, ignoring any
implied decimal point.
Usage Consideration
If the result cannot be represented in a signed doubleword, $FIXD sets the overflow
indicator.
Example of $FIXD Function
In this example, $FIXD returns an INT(32) value from a FIXED(0) expression:
INT(32) dblnum; !Declare variables
FIXED fixnum := 1234F;
dblnum := $FIXD (fixnum); !Return 1234D
$FIXI Function
The $FIXI function returns the signed INT equivalent of a FIXED(0) expression.
fixed-expression
is a FIXED expression, which $FIXI treats as a FIXED(0) expression, ignoring any
implied decimal point.
Usage Considerations
If the result cannot be represented in a signed 16-bit integer, $FIXI sets the overflow
indicator.
Example of $FIXI Function
In this example, $FIXI returns a signed INT equivalent value from a FIXED(0)
expression:
INT intnum; !Declare variables
FIXED fixnum := %177777F;
intnum := $FIXI (fixnum); !Return -1
$FIXI
(
fixed-expression
)
VST1415.vsd