Data_null _; all content in this blog is original. If you reprint it, please indicate the source blog. csdn. netmyhaspl
Data _ null _; all the content of this blog is original, if reproduced please indicate the source http://blog.csdn.net/myhaspl/
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); * stores data in 3 bytes;
Put z =;
All content of this blog is original, if reproduced please indicate the source http://blog.csdn.net/myhaspl/
Z = trunc (1/3, 6); * stores data in 6 bytes;
Put z =;
<[This article comes from Internet of Hong Kong (http://www.68idc.cn)] br/>
Run;
Output: xx = 16 yy = 16
Xx = 15 yy = 15
Xx = 15 yy = 15
Xx = 15.6 yy = 15.1
* Z = 0.3333129883
* Z = 0.3333333333