pTAL Reference Manual (H06.03+)
Built-In Routines
HP pTAL Reference Manual—523746-005
15-44
$FIX
$FIX
$FIX converts its argument to a FIXED value.
expression
is an INT, INT(32), FIXED, REAL, or REAL(64) expression.
If expression is too large in magnitude to be represented by a 64-bit two’s
complement integer, $FIX traps if overflow traps are enabled (see Section 13,
Hardware Indicators); otherwise, $FIX ignores the problem.
$FIXD
$FIXD converts a FIXED value to an INT(32) 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-32. $FIX Routine
FIXED fixnum;
INT intnum := 5;
fixnum := $FIX (intnum); ! Return 5F
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW Yes
expression( )
VST084.vsd
$FIX
(
VST085.vsd
$FIXD fixed-expression )










