TAL Reference Manual

Standard Functions
TAL Reference Manual526371-001
14-27
Example of $LMIN Function
int-expression
is an unsigned INT arithmetic expression.
Example of $LMIN Function
In this example, $LMIN returns the minimum of an unsigned INT expression and a
constant:
INT intval := 3;
min := $LMIN (intval, 5); !Return 3
$MAX Function
The $MAX function returns the maximum of two signed INT, INT(32), FIXED(fpoint),
REAL, or REAL(64) expressions.
expression
is a signed INT, INT(32), FIXED(fpoint), REAL, or REAL(64) expression. Both
expressions must be of the same data type.
Example of $MAX Function
In this example, $MAX returns the maximum of a signed REAL expression and a
constant:
REAL realval := -3E0;
max := $MAX (realval, 5E0); !Return 5E0
$MIN Function
The $MIN function returns the minimum of two INT, INT(32), FIXED(fpoint), REAL, or
REAL(64) expressions.
expression
is an INT, INT(32), FIXED(fpoint), REAL, or REAL(64) expression. Both
expressions must be of the same data type.
$MAX
(
expression
)
expression ,
VST1429.vsd
$MIN
(
expression
)
expression ,
VST1430.vsd