pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-53
$INT
int-expression
is a signed 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.
When $IFIX converts the signed INT expression to a FIXED value, it performs the
equivalent of a signed right shift of 48 positions in a quadrupleword unit.
In Example 15-42 on page 15-53, $IFIX returns a FIXED(2) value from a signed INT
expression and an fpoint of 2.
$INT
$INT converts its argument to an INT value.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-42. $IFIX Routine
FIXED(2) fixnum;
INT intnum := 12345;
fixnum := $IFIX (intnum, 2); ! Return 123.45
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
expression
( )
VST093.vsd
$INT










