> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/function/degtorad.md).

# degtorad

## Description

Converts an angle from degrees to radians.

## Parameters

* `degrees`: The angle in degrees to convert

## Returns

Returns the angle converted to radians.

## Examples

```javascript
// Convert 180 degrees to radians
angle = degtorad(180)
// returns approximately 3.14159 (π)

// Convert 90 degrees to radians
angle = degtorad(90)
// returns approximately 1.5708 (π/2)

// Use with trigonometric functions
x = degtorad(45).sin * distance
```
