DATA Step, Macro, Functions and more

SAS Format

Accepted Solution Solved
Reply
anonymous_user
Posts: 0
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
Accepted by anonymous_user
‎12-01-2016 10:07 AM
Super Contributor
Posts: 253

Re: SAS Format

Posted in reply to anonymous_user

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
Accepted by anonymous_user
‎12-01-2016 10:07 AM
Super Contributor
Posts: 253

Re: SAS Format

Posted in reply to anonymous_user

Use the `Ew.d` format, perhaps?

 


data _null_;
x= 4.59038E-15;
put x= E9.2;
run;
anonymous_user
Posts: 0

Re: SAS Format

Posted in reply to snoopy369

Perfect, thanks for your help!

☑ This topic is solved.

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

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