Formats for NLS |
Category: | Numeric |
Alignment: | left |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
NLMNYIw.d |
specifies the width of the output field.
Default: | 9 |
Range: | 1-32 |
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.
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: | |||||
Informats: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.