Hi,
In the code below, the SAS base application in our office displays the values in 'displayed' column when a is divided by b, then multiplied to 100, even if we made the format best32. However, the calculator gives longer values.
But when I tried doing the division in the "want" dataset in SAS Studio (SAS base on demand), the division works fine.
Can the automatic rounding of SAS be fixed?
data have; input a b displayed; cards; 16854.17 197890.028 8.5169375 819368.85 369280 221.8828125 150914.35 255027.6243 59.1756875 226253.24 858790.6977 26.3455625 100876.91 363464.5669 27.7542625 14788.51 777104.3771 1.9030275 ; run;
data want; set have; d = (a/b)*100; run;
... View more