TAL Reference Manual
Standard Functions
TAL Reference Manual—526371-001
14-26
Usage Consideration
to the right of the decimal. A negative fpoint specifies the number of integer places
to the left of the decimal point.
Usage Consideration
$LFIX places the INT value in the low-order (least significant) word of the
quadrupleword and sets the three high-order (most significant) words to 0.
Example of $LFIX Function
In this example, $LFIX returns a FIXED(2) value from an unsigned INT expression and
an
fpoint of 2:
FIXED(2) fixnum; !Declare variables
INT intnum := 125;
fixnum := $LFIX (intnum, 2); !Return 1.25
$LMAX Function
The $LMAX function returns the maximum of two unsigned INT expressions.
int-expression
is an unsigned INT arithmetic expression.
Example of $LMAX Function
In this example, $LMAX compares an unsigned INT expression and a constant and
returns the maximum value:
INT intval := 3;
max := $LMAX (intval, 5); !Return 5
$LMIN Function
The $LMIN function returns the minimum of two unsigned INT expressions.
LMAX
(
int-expression
)
int-expression ,
VST1427.vsd
$LMIN
(
int-expression
)
int-expression ,
VST1428.vsd