Previous Page | Next Page

Informats for NLS

NLMNYIw.d Informat



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

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

NLMNYIw.d


Syntax Description

w

specifies the width of the input field.

Default: 9
Range: 1-32
d

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 NLMNYIw.d informat reads monetary data in the specified locale for the international expression, 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 NLMNYIw.d informat performs processing that is the opposite of the NLMNYw.d informat.


Examples

The following examples use the input value of 12,345.67.

Statements Results

----+----1----+
options LOCALE=English_UnitedStates;

x=input('(USD12,345.67)',nlmnyi32.2);

y=input('$-12,345.67)',dollar32.2);

put x=;

put y=;
-12345.67

-12345.67


See Also

Formats:

NLMNYw.d Format

NLMNYIw.d Format

Informats:

NLMNYw.d Informat

Previous Page | Next Page | Top of Page