PERCENTw.d Informat

Reads percentages as numeric values.
Category: Numeric

Syntax

PERCENTw.d

Syntax Description

w
specifies the width of the input field.
Default:6
Range:1–32
d
specifies the power of 10 by which to divide the value. If the data contain decimal points, the d value is ignored. This argument is optional.
Range:0–31

Details

The PERCENTw.d informat converts the numeric portion of the input data to a number using the same method as the COMMAw.d informat. If a percent sign (%) follows the number in the input field, PERCENTw.d divides the number by 100.

Example

input @1 x percent3. @4 y percent5.; 
Data Line
Result
----+----1
1% (20%)
0.01 -0.2