Produces percentages, using a minus sign for negative values.
| Category: | Numeric |
| Alignment: | Right |
specifies the width of the output field.
| Default | 6 |
| Range | 4–32 |
specifies the number of digits to the right of the decimal point in the numeric value.
| Range | 0–31 |
| Requirement | must be less than w |
|
Statements
|
Results
|
|---|---|
select put(-0.1,percentn10.); |
-10% |
select put(.2,percentn10.); |
20% |
select put(.8,percentn10.); |
80% |
select put(-0.05,percentn10.); |
-5% |
select put(-6.3,percentn10.); |
-630% |