pTAL Reference Manual (H06.08+)

Built-In Routines
HP pTAL Reference Manual523746-006
15-45
$FIXEDTOASCII
fixed-expression
is a FIXED expression, which $FIXD treats as a FIXED expression, ignoring any
implied decimal point.
If the result cannot be represented in a signed doubleword, $FIXD traps if overflow
traps are enabled (see Section 13, Hardware Indicators); otherwise, $FIXD ignores the
problem.
$FIXEDTOASCII
$FIXEDTOASCII converts the absolute value of a FIXED value to an ASCII value.
qvalue input
FIXED(*):value
is a quadrupleword integer value to convert to ASCII digits.
bufferaddr input
BADDR:value
is the byte address at which to write the ASCII digits.
maxdigits input
uINT:value
is the maximum number of ASCII digits to write at bufferaddr.
Example 15-33. $FIXD Routine
INT(32) dblnum;
FIXED fixnum := 1234F;
dblnum := $FIXD (fixnum); ! Return 1234D
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW Yes
$FIXEDTOASCII ( , ,
bufferaddr
) ;
maxdigits
VST617.vsd
qvalue