TAL Reference Manual
Standard Functions
TAL Reference Manual—526371-001
14-18
$FIXL Function
$FIXL Function
The $FIXL function returns the unsigned INT equivalent of a FIXED(0) expression.
fixed-expression
is a FIXED expression, which $FIXL treats as a FIXED(0) expression, ignoring any
implied decimal point.
Usage Considerations
If the result cannot be represented in an unsigned 16-bit integer, $FIXL sets the
overflow indicator.
Examples of $FIXL Function
In this example, $FIXL returns an unsigned INT equivalent value from a FIXED(0)
expression:
INT intnum; !Declare variables
FIXED fixnum := 32767F;
intnum := $FIXL (fixnum); !Return 32,767
$FIXR Function
The $FIXR function returns a FIXED(0) value from an INT, INT(32), FIXED, REAL, or
REAL(64) expression and applies rounding to the result.
expression
is an INT, INT(32), FIXED, REAL, or REAL(64) expression.
Usage Considerations
If expression is too large in magnitude to be represented by a 64-bit two’s complement
integer, $FIXR sets the overflow indicator.
$FIXL
(
fixed-expression
)
VST1416.vsd
$FIXR
(
expression
)
VST1417.vsd