Log and Antilog

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

Log and Antilog

Hi,

anybody can guide me how can I do the reverse log in SAS.

i.e.:

LOG(98167.94) is 4.99196967766037

I want to convert 4.99196967766037 to 98167.94.

Thanks,

KP


Accepted Solutions
Solution
‎11-27-2013 12:02 PM
Super User
Posts: 19,770

Re: Log and Antilog

Posted in reply to Kpatel306

All Replies
Solution
‎11-27-2013 12:02 PM
Super User
Posts: 19,770

Re: Log and Antilog

Posted in reply to Kpatel306

You can google some of these Smiley Happy

First result from google "SAS ANTILOG"

SAS-L archives -- December 2001, week 2 (#305)</title><style type="text/css"><!--BODY { font-family:...

Occasional Contributor
Posts: 14

Re: Log and Antilog

Thanks Reeza,

I have seen that before and use that function in my code, but I think I did some mistake in using EXP, so it was not working.

But now its working.

Thanks a lot.

SAS Super FREQ
Posts: 3,752

Re: Log and Antilog

Posted in reply to Kpatel306

In SAS, LOG means "natural log." Your example is actually

L = LOG10(98167.94);

so the inverse is

P = 10**L;

🔒 This topic is solved and locked.

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

Discussion stats
  • 3 replies
  • 3957 views
  • 0 likes
  • 3 in conversation