## DATA Step, Macro, Functions and more

Solved
Regular Contributor
Posts: 210

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
Valued Guide
Posts: 561

## 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: 22,873

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

Regular Contributor
Posts: 210

## 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
Valued Guide
Posts: 561

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