Previous Page | Next Page

Formats for NLS

NLMNYIw.d Format



Writes the monetary format of the international expression in the specified locale.
Category: Numeric
Alignment: left

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

NLMNYIw.d


Syntax Description

w

specifies the width of the output field.

Default: 9
Range: 1-32
d

specifies the number of digits to the right of the decimal point in the numeric value.

Default: 0
Range: 0-31

Details

The NLMNYIw.d format reads integer binary (fixed-point) values, including negative values that are represented in two's-complement notation. The NLMNYIw.d format writes numeric values by using the international currency code, and locale-dependent thousands and decimal separators. The position of international currency code is also locale dependent.

Note:   The NLMNYIw.d format does not convert currency format, therefore, the value of the formatted number should equal the currency of the current locale value.  [cautionend]


Comparisons

The NLMNYw.d and NLMNYIw.d formats write the monetary format with locale-dependent thousands and decimal separators. However, the NLMNYIw.d format uses three-letter international currency codes, such as USD, while NLMNYw.d format uses local currency symbols, such as $.


Examples

In the following example, the LOCALE= system option is set to English_UnitedStates.

x=put(-1234.56789,nlmnyi32.2);
y=put(-1234.56789,nlmny32.2);
z=put(-1234.56789,dollar32.2);

Statements Results

----+----1----+
put x=;

put y=;

put z=;
(USD1,234.57)

($1,234.57)

$-1,234.57


See Also

Formats:

NLMNYw.d Format

Informats:

NLMNYw.d Informat

NLMNYIw.d Informat

Previous Page | Next Page | Top of Page