## DATA Step, Macro, Functions and more

Solved
Frequent Contributor
Posts: 142

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

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;
quit;``````

All Replies
Super User
Posts: 19,822

## Re: Convert degrees into radians

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

`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

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

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;
quit;``````

☑ This topic is solved.

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