33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000.87
c. animal1 animal2 mlgrams1 mlgrams2
hummingbird ostrich 54000.39 90800000
答案选的是b,但我怎么感觉不对啊?ch
s*****0 发帖数: 357
2
character variable的default length是8,每个字符占一位。
numberical variable的存储方式和character variable不一样,默认值应该也是8,但8
位的numerical variable可以存储很大的一个数或者精确到小数后十几位。答案选b没
错。
【在 w*********a 的大作中提到】 : 33.The following SAS program is submitted: : data test; : input animal1 $ animal2 $ : mlgrams1 mlgrams2; : cards; : hummingbird ostrich 54000.39 90800000.87 : ; : run; : Which one of the following represents the values of each variable in the : output data set?