pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-60
$LFIX
$LFIX
$LFIX converts an unsigned INT value to a FIXED(fpoint ) value.
int-expression
is an unsigned INT expression.
fpoint
is a value in the range -19 through +19 that specifies the position of the implied
decimal point in the result. A positive fpoint specifies the number of decimal
places to the right of the decimal. A negative fpoint specifies the number of
integer places to the left of the decimal point.
$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 15-50. $LEN Routine
INT s_len;
STRUCT .s[0:99];
BEGIN
INT(32) array[0:2];
END;
s_len := $LEN (s); ! Return 12
Example 15-51. $LEN Routine
INT array_length;
INT(32) array[0:2];
array_length := $LEN (array) * $OCCURS (array);
! Return 12, the length of the entire array in bytes
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
( )
VST097.vsd
,
$LFIX
int-expression fpoint










