DATA Step, Macro, Functions and more

Code for rounded

Accepted Solution Solved
Reply
Contributor
Posts: 61
Accepted Solution

Code for rounded

Hi,

I want to eliminate the decimal points from my sas datafile. Can I have the code for that specific variable? there are codes to bring the outcome without decimal points but I want to change it in the datafile.

Thanks


Accepted Solutions
Solution
‎05-05-2016 01:39 PM
Super User
Posts: 17,840

Re: Code for rounded

Var = round(var, 1);

format var 8.;

View solution in original post


All Replies
Solution
‎05-05-2016 01:39 PM
Super User
Posts: 17,840

Re: Code for rounded

Var = round(var, 1);

format var 8.;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 171 views
  • 0 likes
  • 2 in conversation