MPE/iX Intrinsics Reference Manual (32650-90875)

556 Chapter9
Command Definitions (MAIL-PUTJCW)
NLNUMSPEC
NLNUMSPEC
NM and CM callable.
Returns the information needed for formatting and converting numbers. It combines
several calls to NLINFO to simplify the use of native language formatting. By calling
NLNUMSPEC once, and passing the obtained information to NLFMTNUM and NLCONVNUM,
implicit calls to NLNUMSPEC from NLFMTNUM and NLCONVNUM are avoided and performance is
improved.
Syntax
I16V U16A U16A
NLNUMSPEC(
langnum,string,error
);
Parameters
langnum
16-bit signed integer by value (required)
Contains the language ID number.
string
16-bit unsigned integer array (required)
Contains >= 60 bytes, where the following information is returned:
Bytes Meaning
00-01 Language identification number (integer)
02-03 Alternate digit indicator (integer)
0 No alternate digits exist
1 Alternate digits exist
06-07 Alternate digit range (0,9)
08 Decimal separator (ASCII-digits)
09 Decimal separator (alternate-digits)
10 Thousands separator (ASCII-digits)
11 Thousands separator (alternate-digits)
12 '+' (alternate-digits)
13 '-' (alternate-digits)
14 Right-to-left space
15 Reserved for the operating system
16-17 Currency place (integer)
0 Currency symbol
1 Currency symbol succeeds the number