全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学
4523 1
2014-02-12

10

The following SAS program is submitted:

%let Value=9;

%let Add=5;

%let Newval=%eval(&Value/&Add);

%put &Newval;

What is the value of the macro variable Newval when the %PUT statement executes?

A. 0.555

B. 2

C. 1.8

D. 1


为什么是D呢?

谢谢!


二维码

扫码加我 拉你入群

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

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

全部回复
2014-2-12 05:30:46
已找到答案:
%PUT statement shows that %EVAL discards the fractional part when it performs division on integers that would result in a fraction: 如果要获得准确的结果应该选择函数%sysevalf替换%eval.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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