欢迎投稿

今日深度:

数学之路-sas备忘(18),之路-sas备忘18

数学之路-sas备忘(18),之路-sas备忘18


data _null_;
x=15.63;
y=15.13;


xx=ceil(x);
yy=ceil(y);
put xx= yy=;


xx=floor(x);
yy=floor(y);
put xx= yy=;


xx=int(x);
yy=int(y);
put xx= yy=;


xx=round(x,0.1);
yy=round(y,0.1);
put xx= yy=;


z=trunc(1/3,3);*按3个字节存储;
put z=;

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/




z=trunc(1/3,6);*按6个字节存储;
put z=;


run;
输出:xx=16 yy=16
xx=15 yy=15
xx=15 yy=15
xx=15.6 yy=15.1
z=0.3333129883
z=0.3333333333

www.htsjk.Com true http://www.htsjk.com/shujukunews/7259.html NewsArticle 数学之路-sas备忘(18),之路-sas备忘18 data _null_; x=15.63; y=15.13; xx=ceil(x); yy=ceil(y); put xx= yy=; xx=floor(x); yy=floor(y); put xx= yy=; xx=int(x); yy=int(y); put xx= yy=; xx=round(x,0.1); yy=round(y,0.1); put xx= yy=; z=t...
评论暂时关闭