DATA Step, Macro, Functions and more

SAS Format

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 140
Accepted Solution

SAS Format

Hi,

 

In one code of SAS I get an output like - 4.59E-15

 

Another code (same varibale) the output is like - 4.59038E-15

 

I can't see that any formatting has been done on the first output and I would like the second output to be the same as the first.

 

Any idea what format I need to use please?


Accepted Solutions
Solution
‎12-01-2016 10:07 AM
Regular Contributor
Posts: 244

Re: SAS Format

Use the `Ew.d` format, perhaps?

 


data _null_;
x= 4.59038E-15;
put x= E9.2;
run;

View solution in original post


All Replies
Solution
‎12-01-2016 10:07 AM
Regular Contributor
Posts: 244

Re: SAS Format

Use the `Ew.d` format, perhaps?

 


data _null_;
x= 4.59038E-15;
put x= E9.2;
run;
Frequent Contributor
Posts: 140

Re: SAS Format

Perfect, thanks for your help!

☑ This topic is SOLVED.

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

Discussion stats
  • 2 replies
  • 207 views
  • 2 likes
  • 2 in conversation