MPE/iX Intrinsics Reference Manual (32650-90905)

522 Chapter9
Command Definitions (MAIL-PUTJCW)
NLCONVNUM
NLCONVNUM
NM and CM callable.
Converts native language numbers with native decimal and thousands separators to an
ASCII number with NATIVE-3000 decimal and thousands separators. Optionally, the
decimal and thousands separators can be removed.
Syntax
I16V CA I16V CA
NLCONVNUM(
langnum,instring,inlength,outstring,
I16V U16V U16V
outlength,error
,
numspec
,
U16V U16V O-V
fmtmask,decimals
);
Parameters
langnum
16-bit signed integer by value (required)
Contains the language ID number, specifying which numeric formatting
rules are to be used in the conversion.
instring
character array (required)
Contains the native language formatted number to be converted. Leading
and trailing spaces are ignored.
inlength
16-bit signed integer by value (required)
Passes the length, in bytes, of
instring
.
outstring
character array (required)
Contains the converted output, left justified in the buffer.
Outstring
can
reference the same address as
instring
.
outlength
16-bit signed integer by value (required)
Passes the length, in bytes, of
outstring
. If the call is successful,
outlength
contains the actual length of the converted number.
error
16-bit unsigned integer by value (required)
Returns two elements: the first element is the error number; the second
element is reserved and always returns 0. The possible error number
values are:
Value Meaning
0
Successful
1 *NLS not installed
2 *Specified language not configured