I'm having trouble finding out which format will get the results I am looking for.
I'd like to convert a number like this 0.032258 to 3.2
Create a format to simulate percent if you don't want the % sign
![percent.png percent.png](https://communities.sas.com/t5/image/serverpage/image-id/43471iB9552C6E8B0DE7A0/image-size/large?v=v2&px=999)
proc format;
picture perc (round)
low - high ='009.9' (mult=1000);
run;
data x;
input a;
cards;
0.032258
0.12345
1.2345
;
proc print;
format a perc.;
run;
You can also use the multiplier option in a picture format.
Create a format to simulate percent if you don't want the % sign
![percent.png percent.png](https://communities.sas.com/t5/image/serverpage/image-id/43471iB9552C6E8B0DE7A0/image-size/large?v=v2&px=999)
proc format;
picture perc (round)
low - high ='009.9' (mult=1000);
run;
data x;
input a;
cards;
0.032258
0.12345
1.2345
;
proc print;
format a perc.;
run;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: