turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- Base SAS Programming
- /
- Convert degrees into radians

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-28-2017 02:24 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to DmytroYermak

07-28-2017 07:52 PM

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

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to DmytroYermak

07-28-2017 03:02 PM

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

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

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

07-28-2017 03:15 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to DmytroYermak

07-28-2017 07:52 PM

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