NLNUMIw.d Informat

Reads numeric data in the specified locale for international expressions, and then converts the data to a numeric value.
Category: Numeric

Syntax

NLNUMIw.d

Syntax Description

w
specifies the width of the input field.
Default:6
Range:1–32
d
optionally specifies to divide the number by 10d. If the data contains decimal separators, the d value is ignored.
Default:0
Range:0–31

Details

The NLNUMIw.d informat reads numeric data in the specified locale for international 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 NLNUMIw.d informat performs processing that is opposite to the NLNUMw.d informat.

Example

The following example uses –1,234,356.78 as the input value.
Statements
Results
----+----1----+
options locale=English_UnitedStates;
x=input('-1,234,356.78', nlnumi32.2);
put x=;
-1234356.78