全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 学习笔记1.0
3112 0
2011-01-06
PERCENTw.d

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.
d  可选项,小数位数specifies the number of digits to the right of the decimal point in the numeric value. This argument is optional.
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 xResults
----+----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.
dspecifies the number of digits to the right of the decimal point in the numeric value. This argument is optional.
Range:0-31
Requirement:must be less than w


put x percentn10.;
Value of xResults
-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

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群