Writes the numeric format of the international expression in the
specified locale.
Category: |
Numeric
|
Alignment: |
left
|
- w
-
specifies the width of the output field.
- d
-
specifies to divide the number by 10d. If the data contains decimal points, the d value is ignored.
The NLMUMIw.d format reads integer binary (fixed-point) values, including
negative values that are represented in two's-complement notation. The NLNUMIw.d format writes numeric values
by using a comma (,) as thousands separator and a period (.) as a decimal
separator for all locales.
The NLNUMIw.d format writes the numeric data of the international expression
in the specified locale. The NLNUMIw.d format writes the numeric value with a comma (,) as thousand
separator and a period (.) as a decimal separator.
If the w or d
values are not large enough to generate a formatted number, the NLNUMw.d format uses an algorithm that
prints the thousands-separator characters whenever possible, even if some
decimal precision is lost.
x=put(-1234356.7891,nlnumi32.2);
Statements |
Results |
|
----+----1----+
|
options LOCALE=English_UnitedStates;
put x=;
|
-1,234,356.79
|
options LOCALE=German_Germany;
put x=;
|
-1,234,356.79
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.