Writes percentage data of the local 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 separators, the d value is
ignored.
The NLPCTw.d format writes percentage data of the local expression in
the specified locale. The NLPCTw.d format writes the percentage value with locale-dependent
thousand and decimal separators. The NLPCTIw.d format writes the percentage value with a comma (,) as thousand
separator and a period (.) as a decimal separator.
The NLPCTw.d
format is similar to the PERCENTw.d format except the NLPCTw.d format is
locale-specific.
x=put(-12.3456789,nlpct32.2);
y=put(-12.3456789,nlpcti32.2);
z=put(-12.3456789,percent32.2);
Statements |
Results |
|
----+-----------1
|
options LOCALE=English_UnitedStates;
put x=;
put y=;
put z=;
|
-1,234.57%
-1,234.57%
( 1234.57%)
|
options LOCALE=German_Germany;
put x=;
put y=;
put z=;
|
-1.234,57%
-1,234.57%
( 1234.57%)
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.