NUMXw.d Informat

Reads numeric values with a comma in place of the decimal point.
Category: Numeric

Syntax

NUMXw.d

Syntax Description

w
specifies the width of the input field.
Default:12
Range:1–32
d
specifies the number of digits to the right of the decimal. If the data contain decimal points, the d value is ignored. This argument is optional.
Range:0–31

Details

The NUMXw.d informat reads numeric values and interprets a comma as a decimal point.

Comparisons

The NUMXw.d informat is similar to the w.d informat except that it reads numeric values that contain a comma in place of the decimal point.

Example

input @1 x numx10.;
Data Line
Result
----+----1----+
896,48
896.48
3064,1
3064.1
6489
6489

See Also