可以使用round函数
说明:
round(x,eps)求x按照eps指定的精度四舍五入后的结果.
比如round(5654.5654,0.01)结果为5654.57,round(5654.5654,10)结果为5650。
round 是截取函数
按规定舍入精度取一个数的近似值的函数round;
data; 运行结果
a=int(223.456); b=round(223.456, 100); a=223 b=200
c=round(223.456,10); d=round(223.456,1); c=220 d=223
e=round(223.456,0.1); f=round(223.456,0.01); e=223.5 f=223.46
put _all_;
run;