DATA Step, Macro, Functions and more

Convert degrees into radians

Accepted Solution Solved
Reply
Contributor
Posts: 28
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
4 weeks ago
Regular Contributor
Posts: 187

Re: Convert degrees into radians

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: 17,907

Re: Convert degrees into radians

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) ;

 

Contributor
Posts: 28

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
4 weeks ago
Regular Contributor
Posts: 187

Re: Convert degrees into radians

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
  • 129 views
  • 2 likes
  • 3 in conversation