Informats for NLS |
Category: | Numeric |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
NLNUMw.d |
specifies the width of the input field.
Default: | 6 |
Range: | 1-32 |
optionally specifies whether to divide the number by 10d. If the data contains decimal separators, the d value is ignored.
Default: | 0 |
Range: | 0-31 |
Details |
The NLNUMw.d) informat reads numeric data in the specified locale for local expressions, and then converts the data to a numeric value. It removes any thousands separators, decimal separators, blanks, the currency symbol, and the close parenthesis from the input data.
Comparisons |
The NLNUMw.d informat performs processing that is opposite to the NLNUMIw.d informat.
Examples |
The following example uses -1234356.78 as the input value.
Statements | Results |
---|---|
|
----+----1----+ |
options locale=English_UnitedStates;
x=input('-1,234,356.78',nlnum32.2);
put x=; |
-1234356.78 |
See Also |
Formats: | |||||
Informats: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.