Is there a way to get SAS to round a number (ex. sum, product, quotient) to the nearest whole number, nearest tenth, nearest hundredth, etc. after adding, multiplying, or dividing a series of numbers?
And one of the fun things with the SAS Round function is you can round to other multiples such as 7 or 0.3 if that is needed.
newvar = round(var, 7);
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.