data have;
num = 3298056;
pct = 46.51644;
avg = 1.2555
run;
What is the best way to format the numbers to capture proper commas and to capture the numbers up to 2 decimal places only
So num = 3,298,056 pct = 46.52 avg = 1.25
You can use different formats for each variable. So for NUM, use the COMMA format, and for PCT and AVG, you can use best10.2 (or similar, there are many choices that will work)
April 27 - 30 | GAYLORD TEXAN
Register now to lock in early bird pricing through February 25!
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.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!