w 宽度(要包括正负号和%)specifies the width of the output field.
| Default: | 6 |
| Range: | 4-32 |
| Tip: | The width of the output field must account for the percent sign (% ) and parentheses for negative numbers, whether the number is negative or positive. |
| Range: | 0-31 |
| Requirement: | must be less than w |
The PERCENTw.d format multiplies values by 100, formats them the same as the BESTw.d format, and adds a percent sign (%) to the end of the formatted value, while it encloses negative values in parentheses.
| Examples |
put @10 gain percent10.;
| Value of x | Results |
| ----+----1----+----2 | |
| 0.1 | 10% |
| 1.2 | 120% |
| -0.05 | ( 5%) |
| PERCENTNw.d |
Syntax Description
wspecifies the width of the output field.
| Default: | 6 |
| Range: | 4-32 |
| Tip: | The width of the output field must account for the minus sign ( - ), the percent sign ( % ), and a trailing blank, whether the number is negative or positive. |
| Range: | 0-31 |
| Requirement: | must be less than w |
put x percentn10.;
| Value of x | Results |
| -0.1 | -10% |
| .2 | 20% |
| .8 | 80% |
| -0.05 | -5% |
| -6.3 | -630% |
详细参考:
http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a002980019.htm


雷达卡


京公网安备 11010802022788号







