DATA Step, Macro, Functions and more

Convert degrees into radians

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 142
Accepted Solution

Convert degrees into radians

Hi all,

 

Could you please say how to convert degrees into radians. What is the SAS function for the procedure?


Accepted Solutions
Solution
‎07-29-2017 12:29 AM
Super Contributor
Posts: 440

Re: Convert degrees into radians

Posted in reply to DmytroYermak

There's a FedSQL function called radians - the following creates a table called rads in work which holds the result of the calculation

proc fedsql;
	select radians(45) into rads;
quit;

 

View solution in original post


All Replies
Super User
Posts: 19,822

Re: Convert degrees into radians

Posted in reply to DmytroYermak

I think it's basic math, but I'd like to be wrong here Smiley Happy

 

 

x = (atan(1)/45 * long) ;
y = (atan(1)/45 * lat) ;

 

Frequent Contributor
Posts: 142

Re: Convert degrees into radians


Reeza wrote:

I think it's basic math, but I'd like to be wrong here Smiley Happy

 


Thanks! Do you know if a special SAS function exists for the conversion?

Solution
‎07-29-2017 12:29 AM
Super Contributor
Posts: 440

Re: Convert degrees into radians

Posted in reply to DmytroYermak

There's a FedSQL function called radians - the following creates a table called rads in work which holds the result of the calculation

proc fedsql;
	select radians(45) into rads;
quit;

 

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 240 views
  • 2 likes
  • 3 in conversation