DATA Step, Macro, Functions and more

Decimal places in proc means

Reply
Contributor
Posts: 21

Decimal places in proc means

When i am using proc means for a variable the one observation is giving 3 and other 2 decimal places in output, how to keep 3 decimal places for all observations.

SAS Super FREQ
Posts: 9,368

Re: Decimal places in proc means

Hi:
Research the MAXDEC= option of PROC MEANS.
cynthia
Senior User
Posts: 1

Re: Decimal places in proc means

Posted in reply to Cynthia_sas

I believe it's important to mention here that - according to documentation - MAXDEC specifies the maximum number of decimal places only to display the statistics in the printed or displayed output. It has no effect on statistics that are saved in an output data set.

 

I'm looking for solution to similar problem. Is there any simple way to get the rounded values directly from PROC MEANS?

Regular Contributor
Posts: 213

Re: Decimal places in proc means

Afaik, no, rounding is not possible.
Ask a Question
Discussion stats
  • 3 replies
  • 4801 views
  • 2 likes
  • 4 in conversation