6100 ADCCP Programming Manual

Application Tasks
Writing Applications that Use ADCCP
4–8 069225 Tandem Computers Incorporated
NUMOUT Procedure
The NUMOUT procedure converts unsigned integer values to their ASCII equivalents.
The result is returned right-justified in an array. Any proceeding blanks are filled with
zeros.
CALL NUMOUT (
ascii-result
!o
,
unsigned-integer
!i
,
base
!i
,
width
) !i
ascii-result
output
STRING:ref:*
is an array where the converted value returns. The ASCII representation is right-
justified in
ascii-result
[
width
-1]. Any preceding blanks are filled with
zeros.
unsigned-integer
input
INT:value
is the value to be converted.
base
input
INT:value
is the number base for the resulting conversion. Any number in the range 2
through 10 is valid.
width
input
INT:value
is the maximum number of characters permitted in
ascii-result
. Characters
might be truncated on the left side. If
width
is too small to contain the number,
the most significant digits are lost.