/* algebra:
15/30 = X/100
(15/30)*100 = (X/100)*100
(15/30)*100 = X
*/
data want;
do score=0 to 30;
result30=score/30;
result100=(result30)*100;
result100rnd0=round(result100,1);
result100rnd1=round(result100,.1);
result100rnd2=round(result100,.01); * <<< this is probably what you want? ;
result100rnd3=round(result100,.001);
output;
end;
run; is there a SAS function for SAS to translate them all out of 100 such as 15/30 to 50/100? No. Nor is there one to translate them all from 23 to 105, 42 to 132, 13 to 48, etc. But the math is relatively simple.
... View more