In this section: |
The following features were added as of FOCUS 7.7.07.
How to: |
The lowercase p display option converts a number to a percent by multiplying it by 100. It then displays the number followed by a percent symbol (%). This is different from the % format option, which does not calculate a percent, it just displays a percent symbol after the number.
Note: This option is not supported for output formats XLSX and EXL2K.
field/floatfmtp
where:
Is a numeric field.
Is a numeric format of type F or D.
The following request displays the PCT_INC field (which is a decimal value) and redisplays it as a percentage:
TABLE FILE EMPLOYEE PRINT PCT_INC PCT_INC/F10p END
The output is:
PCT_INC PCT_INC ------- ------- .10 10% .12 12% .10 10% .04 4% .00 0% .05 5% .00 0% .00 0% .10 10% .00 0% .00 0% .15 15% .00 0% .07 7% .00 0% .04 4% .00 0% .05 5% .00 0%
|
Information Builders |