pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manual523746-005
15-61
$LMAX
$LMAX
$LMAX returns the maximum of two unsigned INT values.
int-expression
is an unsigned INT expression.
$LMIN
$LMIN returns the minimum of two unsigned INT values.
Example 15-52. $LFIX Routine
FIXED(2) fixnum;
INT intnum := 125;
fixnum := $LFIX (intnum, 2); ! Return 1.25
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-53. $LMAX Routine
INT intval := 3;
max := $LMAX (intval, 5); ! Return 5
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
( )
VST098.vsd
,
$LMAX
int-expression int-expression
( )
VST099.vsd
,int-expression int-expression
$LMIN