MPE/iX Intrinsics Reference Manual (32650-90875)
Chapter 4 91
Command Definitions (ABORTSESS - FCLOSE)
DASCII
the sign). For example, if
binvalue
=0, the length returned is 1.
• For decimal right-justified conversions (
base
=-10), the result is
right-justified in
asciieqv
; the least significant digit is in
asciieqv
(-1), the next least significant digit is in
asciieqv
(-2), and so
on.
• For right-justified conversions, the character array where the converted
value is to be placed must specify the rightmost byte where data is
placed. For example, if
asciieqv
is a 10 byte array declared as:
VAR
MYSTRING : ARRAY [1..10] OF CHAR;
then you must specify it in the ASCII intrinsic call as follows (for right
justification):
NUMCHAR:=ASCII(VALUE,-10&
,WADDRESS(MYSTRING[10]));
The result is right-justified in
asciieqv
, with the rightmost digit of the
result contained in the last (rightmost) byte of
asciieqv
.
• For hexadecimal conversions (
base
=16), 8 characters (including leading
zeros) are returned. The digits can be 0..9 and A..F.
Numchar
returns
the number of significant (right-justified) characters (excluding leading
zeros). For example, if
binvalue
=32,
numchar
is 2 and
asciieqv
will
be 00000020.
Related Information
Intrinsics ASCII
Manual Data Types Conversion Programmer's Guide